cypress-io / cypress-io/github-action
How to end the rails started process to generate simplecov coverage report
- Dominant language
- JavaScript
- Stars
- 1.5k
- Forks
- 353
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 27
Description
I'm using Cypress to do system on our Rails application and simplecov to generate the coverage report, but simplecov only generate the reports when the rails server process is terminated with sucess `exit(0).`
https://github.com/cypress-io/github-action#start-server
```
...
- name: Cypress Run
uses: cypress-io/github-action@v2
env:
CYPRESS_RAILS_PORT: 9999
CYPRESS_BASE_URL: "http://localhost:9999/"
COVERAGE: true
with:
start: bundle exec rails server -b 0.0.0.0 -p 9999
wait-on: "http://localhost:9999"
...
```
Cypress suite test runs perfectly but in the end I didn't get the simplecov reports to be uploaded to codecov. I'm guessing this is because the "started" rails process was note terminated by the cypress github action.
e.g
```
^C- Gracefully stopping, waiting for requests to finish
=== puma shutdown: 2022-02-18 11:48:09 -0300 ===
- Goodbye!
Exiting
Coverage report generated to /Users/wagner/src/tia/coverage/coverage.xml. 1469 / 3460 LOC (42.46%) covered
Coverage report generated to /Users/wagner/src/tia/coverage. 1469 / 3460 LOC (42.46%) covered.
```
Any idea how to achieve this ? Get the simplecov report in the end of the cypress github action execution?
Thanks a lot in advance.
Contributor guide
Assessment
This issue has not been assessed yet.