pull/5370/head
Your Name 5 months ago
parent b74af315c1
commit 707efe1f68
  1. 2
      .circleci/config.yml
  2. 33
      apps/remix-ide-e2e/src/tests/remixd.test.ts

@ -3,7 +3,7 @@ version: 2.1
parameters:
run_flaky_tests:
type: boolean
default: false
default: true
orbs:
browser-tools: circleci/browser-tools@1.4.4
win: circleci/windows@5.0

@ -243,7 +243,14 @@ module.exports = {
done()
})
})
}
},
'Should install slither #group10 #flaky': function (browser: NightwatchBrowser) {
browser.perform(async (done) => {
await installSlither()
done()
})
},
}
function runTests(browser: NightwatchBrowser, done: any) {
@ -477,3 +484,27 @@ async function buildFoundryProject(): Promise<void> {
console.log(e)
}
}
async function installSlither(): Promise<void> {
console.log('installSlither', process.cwd())
try {
const server = spawn('node', ['./dist/libs/remixd/src/scripts/installSlither.js'], { cwd: process.cwd(), shell: true, detached: true })
return new Promise((resolve, reject) => {
server.stdout.on('data', function (data) {
console.log(data.toString())
if (
data.toString().includes("Slither is ready to use")
) {
console.log('resolving')
resolve()
}
})
server.stderr.on('err', function (data) {
console.log(data.toString())
reject(data.toString())
})
})
} catch (e) {
console.log(e)
}
}

Loading…
Cancel
Save