jeffbski / jeffbski/wait-on

Using wait-on with circle-ci

Open
#40 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.