-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Combine python-coveralls with jest 'collectCoverage' #1123
Comments
I would recommend reporting the two test suite results separately and using our parrallel builds webhook. You can use the coveralls node module to report the jest coverage. This will report 2 jobs which will be aggregate into to the same build on coveralls. On the coveralls site you would be able to view the total coverage or coverage only from each independent test suite. The parallel webhook ensures that we don't comment on pull requests until all coverage data has been processed. You can see documentation on it here Hope this helps! |
@bytewalls, how do I implement the webhook? I was looking at the documentation you suggested. Do I need to define all three lines: COVERALLS_PARALLEL=true
https://coveralls.io/webhook?repo_token=(your repo token)
notifications:
webhooks: https://coveralls.io/webhook?repo_token=COVERALLS_REPO_TOKEN Specifically, where do I define the first two lines. Can they go into the |
@jeff1evesque, the second line isn't necessary as the notification webhook part takes care of hitting that endpoint after the build is complete. As for the repo token, you should set the Here is some travis documentation on options of how to set environment variables, which might help. |
Made some additional changes to the env:
- COVERALLS_PARALLEL=true
##
## implement coveralls.io webhook
##
## https://github.com/lemurheavy/coveralls-public/issues/1123#issuecomment-390699100
## https://github.com/lemurheavy/coveralls-public/issues/1123#issuecomment-391030777
##
notifications:
webhooks: https://coveralls.io/webhook?repo_token=$COVERALLS_REPO_TOKEN My builds are failing, and likely a result of poorly defining the corresponding |
@bytewalls, thanks for your help. Finally got it working: |
I am implementing
python-coveralls
(which is successfully being sent to coveralls), with newly added jest coverage. But, I'm not sure how to combine the two into a single result, before being sent to coveralls.io.Coverage from Jest:
Note: the full issue can be further reviewed.
The text was updated successfully, but these errors were encountered: