-
Notifications
You must be signed in to change notification settings - Fork 51
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
While tests are running, class and target TestItems are not updated #1029
Comments
@adam-fowler I don't think I'm reproducing this correctly. The Target and Suite show the spinner as long as there are tests executing within them, but this behaviour is consistent across VS Code Swift extension releases. To test I went back to the 1.9 release and recorded an async XCTest Run: AsyncXCTextBehaviour_1.9.mp4And then compared it to the same run on AsyncXCTextBehaviour_Main.mp4Perhaps VS Code has changed the underlying Test Explorer behaviour? |
@plemarquand You need a project with multiple suites. The problem is once a suite has completed the test item for that suite is not updated. You'll only see this if you have multiple suites as everything is updated once the all the tests have finished. In the video below notice how the cookie tests are all completed but the CookieTests suite test item is not updated. It gets updated once all tests are complete, but I'd like to see it updated as the tests run. test-explorer.mov |
Ah! Understood, thanks for the clarification. I'll take a look at this. |
Add back some code that was removed that marked XCTest suites as passed/failed as soon as all their tests completed. Currently the TestExplorer shows the test suites as pending until all tests in the whole test run have completed. This is a regression from how the Test Explorer used to work, where suites were marked as passed/failed immediately upon suite completion. Issue: swiftlang#1029
Add back some code that was removed that marked XCTest suites as passed/failed as soon as all their tests completed. Currently the TestExplorer shows the test suites as pending until all tests in the whole test run have completed. This is a regression from how the Test Explorer used to work, where suites were marked as passed/failed immediately upon suite completion. Issue: swiftlang#1029
Add back some code that was removed that marked XCTest suites as passed/failed as soon as all their tests completed. Currently the TestExplorer shows the test suites as pending until all tests in the whole test run have completed. This is a regression from how the Test Explorer used to work, where suites were marked as passed/failed immediately upon suite completion. Issue: swiftlang#1029
…1031) Add back some code that was removed that marked XCTest suites as passed/failed as soon as all their tests completed. Currently the TestExplorer shows the test suites as pending until all tests in the whole test run have completed. This is a regression from how the Test Explorer used to work, where suites were marked as passed/failed immediately upon suite completion. Issue: #1029
Verified with d6c91dd |
Describe the bug
While tests are running, suite/XCTestCase class and target TestItems are not updated. They are only updated once the test run has finished. If you have a lot of tests this makes it hard to see progress.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
As each suite/XCTestCase class has all its tests completed its TestItem updated accordingly
The extension used to do this. @plemarquand I seem to remember seeing you removed the code that did this with a comment about it being unnecessary. I should have verified this but didn't.
The text was updated successfully, but these errors were encountered: