-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
smoke tests: add ability to target build (#4880)
### Intent Restructure the Mocha test runner code to ensure that all test setup and environment preparation steps are executed before the actual test suite begins. This restructuring was necessary to allow the test runner to properly target a specific Positron build using the `--build` flag. ### Approach * Moved all environment setup and configuration logic to run before the test suite starts. * Refactored code to handle `--build` path validation and setup early in the execution. * Ensured environment variables are correctly defined during the setup phase. ### QA Notes To target a build: ``` yarn smoketest-pr --build /Applications/Positron.app ``` The console will log the version of the targeted build: <img width="702" alt="Screenshot 2024-10-03 at 9 39 49 AM" src="https://github.com/user-attachments/assets/47b6d127-2f70-496b-b275-d209de40eea4"> * Ran full test suite against PR and things look good. 👍
- Loading branch information
Showing
6 changed files
with
284 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.