forked from GMOD/Apollo3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dev/filter-feature-type
- Loading branch information
Showing
34 changed files
with
2,020 additions
and
1,632 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<!-- vim-markdown-toc GFM --> | ||
|
||
- [Setup](#setup) | ||
- [Run CLI tests](#run-cli-tests) | ||
- [Run docker test](#run-docker-test) | ||
|
||
<!-- vim-markdown-toc --> | ||
|
||
These are instructions to execute the CLI tests. | ||
|
||
# Setup | ||
|
||
In VSCode open the Apollo project as container as usual (Ctrl+Shift+P then | ||
`Dev container: Open folder in container`). Start Apollo for CLI testing: | ||
Ctrl+Shift+P then `Run task` (enter) `Start-cli-test`. | ||
|
||
Alternatively, the Apollo server must be configured to accept root user access. | ||
For this edit `packages/apollo-collaboration-server/.development.env` as: | ||
|
||
``` | ||
sed -i'' 's/# ALLOW_ROOT_USER=false/ALLOW_ROOT_USER=true/; | ||
s/# ROOT_USER_PASSWORD=password/ROOT_USER_PASSWORD=pass/' packages/apollo-collaboration-server/.development.env | ||
``` | ||
|
||
then restart the collaboration server to make changes effective. | ||
|
||
# Run CLI tests | ||
|
||
Change to: | ||
|
||
``` | ||
cd Apollo3/packages/apollo-cli | ||
``` | ||
|
||
- To run all tests: | ||
|
||
``` | ||
* yarn tsx src/test/test.ts | ||
``` | ||
|
||
- To run only tests matching aregular expression: | ||
|
||
``` | ||
yarn tsx --test-name-pattern='Print help|Feature get' src/test/test.ts | ||
``` | ||
|
||
# Run docker test | ||
|
||
``` | ||
yarn tsx ./src/test/test_docker.ts | ||
``` |
Oops, something went wrong.