Skip to content
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

Enable interactive run for watch mode #809

Merged
merged 1 commit into from
Jan 1, 2022

Conversation

connectdotz
Copy link
Collaborator

@connectdotz connectdotz commented Dec 11, 2021

This PR mainly implements TestItem profile support using vscode.TestRunTag and enable TestExplorer to run tests on demand for all workspaces including watch-mode:

  1. each test item can enable/disable run/debug profile independently via vscode.TestRunTag
  2. enable run profile for all configs, even "watch" mode. Why? There seems to be a common confusion for watch mode users when the watcher does not function as they anticipated. This will give users the ability to run any tests regardless how jest-watcher behave (Test Explorer does not convert failed test to passing after save #757). However, to prevent the output got overridden by each other, we created a separate run queue with different output file names.
  3. allow debugging test on the test file level, i.e. no explicit test name. This could be useful if the test block can not be identified. Will use the wildcard for 'testNamePattern' in this case.
  4. remove the warning popup when no debug config is found.
  5. in order to increase compatibility with known platforms (such as angular), move run test by-path to by-pattern when running test by explicit test file.

fixes #757

@coveralls
Copy link

Pull Request Test Coverage Report for Build 1568071107

  • 70 of 70 (100.0%) changed or added relevant lines in 8 files are covered.
  • 2 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.04%) to 95.363%

Files with Coverage Reduction New Missed Lines %
src/JestExt/core.ts 1 98.46%
src/test-provider/test-provider.ts 1 97.5%
Totals Coverage Status
Change from base Build 1542100359: 0.04%
Covered Lines: 2568
Relevant Lines: 2639

💛 - Coveralls

@connectdotz connectdotz merged commit 1fec32a into jest-community:master Jan 1, 2022
legend1202 pushed a commit to legend1202/vscode-jest that referenced this pull request Jun 18, 2023
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.

Test Explorer does not convert failed test to passing after save
2 participants