-
Notifications
You must be signed in to change notification settings - Fork 13k
Adds failed test tracking #25004
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
Adds failed test tracking #25004
Conversation
dc11404
to
5c8f1a0
Compare
5c8f1a0
to
0944c29
Compare
ping @weswigham, @mhegazy |
Gulpfile.js
Outdated
@@ -298,7 +298,8 @@ gulp.task(runJs, /*help*/ false, [typescriptServicesJs, tsserverlibraryDts], () | |||
|
|||
gulp.task( | |||
"tests", | |||
"Builds the test infrastructure using the built compiler", | |||
if (tests || runners || light || testTimeout || taskConfigsFolder) { |
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.
Is there a syntax error here?
eee7c20
to
dd66cbb
Compare
dd66cbb
to
d3ef20c
Compare
args.push(arg); | ||
}); | ||
|
||
let mocha = "./node_modules/mocha/bin/mocha"; |
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 think we should resolve this path using __dirname
to handle if Jake or gulp is involved in a project subfolder.
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.
Both jake and gulp reset cwd to the location of the jakefile/gulpfile.
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.
Alright, neat.
This PR adds the ability to track failing tests when building with the "runtests" or "runtests-parallel" build tasks. The names of failing tests are written to a .failed-tests file in the workspace root. You can re-run failing tests using
jake runtests failed=true
(orgulp runttests --failed
, once gulp is working again).Whenever a failing test passes, it is removed from the .failed-tests file. If all tests pass, the .failed-tests file is removed. This helps when running down a large number of failing tests, without having to continually rerun the entire test suite.