This repository has been archived by the owner on Dec 6, 2022. It is now read-only.
Fix several bugs to make the tests run deterministically #852
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
MSFT_TEST_TIMEOUT_MULTIPLIER: Modify the multiplier to have the tests timeout faster in your Dev Machine (Useful when the tests are failing).
test/int/adapter.test.ts: Updated the tests to generate a DA log
test/int/fixtures/launchProject.ts: Updated to create web server before the debug-adapter, and to return the web-server url
test/int/fixtures/launchWebServer.ts: Updated to wait for the async methods of the server, to launch on a random launchProject, and return the url as a property and inside the launch configuration
test/int/framework/frameworkTestSupport.ts: The port is randomly choosen by the web-server, so we removed the url from the test spec
test/int/puppeteer/launchPuppeteer.ts: Use a random port for the debug adapter. Disconnect the debug-adapter, and close puppeteer and chrome on cleanUp
test/int/puppeteer/puppeteerSuite.ts: Add the launch project to the context so the tests can access the web-server url
test/int/stackTrace.test.ts & test/int/wizards/breakpoints/implementation/stackTraceObjectAssertions.ts: Because the url is not fixed any more, it's more difficult to feed it to the StackTraceValidator, so pass a full url instead of a relative one instead
test/int/testSetup.ts: Kill chrome.exe before the tests, it's more reliable