-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Use cross-spawn
for running Yarn in integration tests
#5550
Conversation
const {cleanup, run} = require('../utils'); | ||
const runJest = require('../runJest'); | ||
|
||
const dir = path.resolve(__dirname, '../coverage-remapping'); | ||
const coverageDir = path.join(dir, 'coverage'); | ||
|
||
SkipOnWindows.suite(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this is the only test that spawns different results on windows - it adds covered-test.ts
next to covered.ts
. Ideas what can cause that? cc @SimenB @jwbay @Aftabnack
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Here it gets the coverage and soucemap info from the from the runner, coverage will be there only for files being used in the tests.
- But soucemaps, along with containing maps for tested code, it also contains mapping for test file itself.
- Here it iterates over sourcemaps and tries to add it to the coverage map.
My guess, this addition works for test file itself, which it doesn't in any other testcase. Do we have another testcase which is written in ts
, same behaviour should be seen
f25d0a8
to
111e1ba
Compare
Codecov Report
@@ Coverage Diff @@
## master #5550 +/- ##
=======================================
Coverage 61.71% 61.71%
=======================================
Files 213 213
Lines 7149 7149
Branches 3 4 +1
=======================================
Hits 4412 4412
Misses 2736 2736
Partials 1 1 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥
* Use cross-spawn for running Yarn in integration tests * Unlock more windows tests * Moar windows * Use node api instead of spawning commands to link babel-jest * Skip windows for coverage_remapping.test.js
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. |
Summary
Use
cross-spawn
for running Yarn in integration tests, which should unblock running some tests on Windows.Test plan
Observe AppVeyor