-
Notifications
You must be signed in to change notification settings - Fork 92
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
test: use test-launch.sh to run the tests #1649
test: use test-launch.sh to run the tests #1649
Conversation
fda6b08
to
e79c4ad
Compare
e79c4ad
to
def053d
Compare
def053d
to
a466a14
Compare
Use one single script called `./tools/test-launch.sh` to trigger all the different tests: - `COVERAGE=1` or `-c` to enable the code coverage - `COVE_VERSION` to set the vscode-extension-tester parameter (e.g `max` or `min`) - `MOCK_LIGHTSPEED_API` (`1` or ``): set it to `1` to dynamically start the mocked server and set `TEST_LIGHTSPEED_URL` - `TEST_TYPE`: `e2e` or `ui` (default) The goal is to reduce the amount of reentrant `yarn` calls and provide a more linar execution flow. Bonus points: - we don't need `start-server-and-test` anymore - we avoid a lot of complexity with how we deal with `TEST_LIGHTSPEED_URL` on MacOS.
67af4dc
to
a49d409
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love the direction. My only question is why the yarn.lock file is modified when you did not modify package.json in any way?
https://github.com/ansible/vscode-ansible/pull/1649/files#r1834505006 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @goneri! This was long due change that I should have made months ago...
Use one single script called
./tools/test-launch.sh
to trigger all the different tests:COVERAGE=1
or-c
to enable the code coverageCOVE_VERSION
to set the vscode-extension-tester parameter (e.gmax
ormin
)MOCK_LIGHTSPEED_API
(1
or ``): set it to1
to dynamically start the mocked server and set `TEST_LIGHTSPEED_URL`TEST_TYPE
:e2e
orui
(default)The goal is to reduce the amount of reentrant
yarn
calls and provide a more linar execution flow.Bonus points:
start-server-and-test
anymoreTEST_LIGHTSPEED_URL
on MacOS.