Skip to content

Adds failed test tracking#25004

Merged
rbuckton merged 3 commits intomasterfrom
trackFailedTests
Jun 25, 2018
Merged

Adds failed test tracking#25004
rbuckton merged 3 commits intomasterfrom
trackFailedTests

Conversation

@rbuckton
Copy link
Copy Markdown
Contributor

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 (or gulp 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.

@rbuckton rbuckton requested review from mhegazy and weswigham June 15, 2018 21:26
@rbuckton
Copy link
Copy Markdown
Contributor Author

ping @weswigham, @mhegazy

Comment thread Gulpfile.js Outdated
gulp.task(
"tests",
"Builds the test infrastructure using the built compiler",
if (tests || runners || light || testTimeout || taskConfigsFolder) {
Copy link
Copy Markdown
Member

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?

args.push(arg);
});

let mocha = "./node_modules/mocha/bin/mocha";
Copy link
Copy Markdown
Member

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.

Copy link
Copy Markdown
Contributor Author

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Alright, neat.

@rbuckton rbuckton merged commit 78bf10a into master Jun 25, 2018
@rbuckton rbuckton deleted the trackFailedTests branch June 25, 2018 23:55
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
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.

2 participants