-
-
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
Concurrent reporter + Run failed tests first #1480
Conversation
aaronabramov
commented
Aug 23, 2016
00e596b
to
70cea3a
Compare
Current coverage is 87.44% (diff: 100%)@@ master #1480 diff @@
==========================================
Files 38 38
Lines 1211 1211
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
Hits 1059 1059
Misses 152 152
Partials 0 0
|
@DmitriiAbramov on circle ci they has ENV var |
@maximderbin yeah... so i thought about making a package like |
for (let i = 0; i < string.length; i++) { | ||
process.stderr.write(string.charAt(i)); | ||
} | ||
process.stderr.write(string); |
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.
nice! :)
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.
@DmitriiAbramov can you explain this? We had a huge issue in the past with previous node versions where on www the test run would just exit if there was a large amount of failures. You could potentially try this by failing 10 % of all assertions and running all tests on www. If the test run passes and prints big diffs, it is safe to remove it.
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.
i tested it on www, but not by failing that many tests.
i believe this line should have fixed it. (process.on('exit')
).
we should definitely test it more thoroughly though.
NODE_ENV="CI"? |
@DmitriiAbramov: Travis, Circle, and Buildkite all have |
@dirk seems like that's exactly what we need! thanks! :) |
70cea3a
to
fdf0b64
Compare
fdf0b64
to
1d4fcad
Compare
const getMaxWorkers = argv => { | ||
if (argv.runInBand) { | ||
return 1; | ||
} else if (argv.maxWorkers) { | ||
return argv.maxWorkers; | ||
return parseInt(argv.maxWorkers, 10); |
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.
hahaha. How long did it take you to figure out that you need to do this so that throat won't explode? Me, in the past when I did experiments, I had to sleep over it.
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.
oh.. i actually thought it was an existing bug in jest :)
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.
at least it didn't pass the flow types. i think it was number when specified in package.json and string if from CLI, or something like that
1d4fcad
to
609da33
Compare
082405a
to
835e750
Compare
864c3e9
to
a811d5d
Compare
a811d5d
to
19c6a1c
Compare
19c6a1c
to
6ccd878
Compare
6ccd878
to
f42ac48
Compare
f42ac48
to
fad0e0e
Compare
fad0e0e
to
309f50f
Compare
* Concurrent reporter * Cleanup and Fixes * Add estimated runtime. * Run failed tests first. * Progress bar + printing cleanups. * Polish printing.
* Concurrent reporter * Cleanup and Fixes * Add estimated runtime. * Run failed tests first. * Progress bar + printing cleanups. * Polish printing.
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. |