testing: add autosave before each test run#141254
testing: add autosave before each test run#141254connor4312 merged 4 commits intomicrosoft:mainfrom Kalmaegi:main
Conversation
Save the current project file before each test run so that the code logic is up to date when the test is run
|
We should make this configurable, and do it like how debug does. For example: vscode/src/vs/workbench/contrib/debug/common/debugUtils.ts Lines 312 to 325 in cd27cdc Also, this should probably trigger only for runs that are triggered via the UI, not API. Example of checking that: |
Okay! |
|
@connor4312 Do you think we need to consider untitled file? running test is more frequent than starting debug, I was worried about the impact on the time |
|
I don't think we need to deal with untitled files. It's unlikely that test runners will discover tests in untitled files. |
Yes, this is somewhat unnecessary |
|
Looks good, thanks! This'll go out in the release next week |
I'm learning to work with testing these days, and I'm really glad I could help! |
Save the current project file before each test run so that the code logic is up to date when the test is run
This PR fixes #139125