Using wait-on with circle-ci
- Dominant language
- JavaScript
- Stars
- 2k
- Forks
- 87
- PR merge metrics
- No merged PRs in 30d
Description
I was using wait-on on CircleCI like this to run cypress tests but it did't work:
```
- run: npm start & ./node_modules/.bin/wait-on http://localhost:3000
- run: ./node_modules/.bin/cypress run --config video=false
```
I got the message:
```
Cypress could not verify that the server set as your `baseUrl` is running:
> http://localhost:3000
```
This was most likely because CircleCI killed the background process to quickly. A solution is using `background: true`:
```
- run:
command: npm start
background: true
- run: ./node_modules/.bin/wait-on http://localhost:3000
- run: ./node_modules/.bin/cypress run --config video=false
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.