Skip to content
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

Adding xit and fit to the test result locations #6482

Merged
merged 16 commits into from Oct 17, 2018

Conversation

svenliebig
Copy link
Contributor

@svenliebig svenliebig commented Jun 16, 2018

This command did return the location with null in the json restults for xit and fit nodes.

node <pathToMyProject>\node_modules\jest\bin\jest -c=<pathToMyProject>\package.json ./test/myTest.test.jsx --json --testLocationInResults

After the code changes the test location of xit and fit results are present.

Fixes #6453

@facebook-github-bot
Copy link
Contributor

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@codecov-io
Copy link

codecov-io commented Jun 16, 2018

Codecov Report

Merging #6482 into master will decrease coverage by 0.07%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6482      +/-   ##
==========================================
- Coverage   66.65%   66.57%   -0.08%     
==========================================
  Files         253      253              
  Lines       10621    10633      +12     
  Branches        4        3       -1     
==========================================
  Hits         7079     7079              
- Misses       3541     3553      +12     
  Partials        1        1
Impacted Files Coverage Δ
packages/jest-jasmine2/src/index.js 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e0ba3e6...b94a41e. Read the comment docs.

@thymikee thymikee requested a review from SimenB June 17, 2018 07:31
@thymikee
Copy link
Collaborator

Mind updating a test for it in e2e/__tests__/location_in_results.test.js?

@svenliebig
Copy link
Contributor Author

Yes, didn't found the related test package, thanks! I will update them

@svenliebig
Copy link
Contributor Author

I dont know why the ci is failing at this tests, tried a "beforeEach" in line 74, or do it inline like it was before, still failing. Locally the tests are running with the equal command that circleci is using:
node ./packages/jest-cli/bin/jest.js ./e2e/__tests__/location_in_results.test.js -i --testResultsProcessor=jest-junit

@thymikee @SimenB would need some help here, tried several things and have no clue what is happening

(Left my comments to show my previous approach in the location_in_results.test.js)

@SimenB
Copy link
Member

SimenB commented Jul 3, 2018

Hey! Sorry about the super slow response! 😱

To run with circus, do JEST_CIRCUS=1 ./jest location_in_results. That should show you the error.

The thing is that you also need to add support for this in jest-circus: https://github.com/facebook/jest/tree/master/packages/jest-circus.

This also needs a rebase 🙂

@SimenB
Copy link
Member

SimenB commented Sep 17, 2018

@Sly321 ping 🙂

@SimenB SimenB added this to the Jest 24 milestone Oct 16, 2018
@SimenB
Copy link
Member

SimenB commented Oct 16, 2018

@Sly321 any chance of updating this so we can land it?

@svenliebig
Copy link
Contributor Author

Sorry i am very busy at the moment with my work and vacation preparations, but if travis is now joining the circle ci results, this should be finally done.

Copy link
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, circus just worked out of the box now, that's awesome.

Thanks for fixing this!

@SimenB SimenB merged commit 7a64497 into jestjs:master Oct 17, 2018
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Jest CLI --testLocationInResults doesn't work with fit/xit test
5 participants