Skip to content

Conversation

rbuckton
Copy link
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 weswigham and mhegazy June 15, 2018 21:26
@rbuckton
Copy link
Contributor Author

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) {
Copy link
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
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
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
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants