Skip to content

Commit

Permalink
Merge pull request #62 from aws/fix-test-script-description
Browse files Browse the repository at this point in the history
Fix test.sh usage description
  • Loading branch information
aws-donocl authored Sep 3, 2024
2 parents 20dd002 + faac3ef commit fbac79c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
20 changes: 9 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,17 @@ Follow the previous steps to patch and build the project.
Use the `./scripts/test.sh` script for testing.

```
Usage: test.sh --website='<WEBSITE-URL>' [OPTIONS]
Required:
--website='<WEBSITE-URL>' URL of the Code Editor instance to test.
Usage: test.sh [OPTIONS]
Options:
-u|--unit-test Run OSS unit tests.
-i|--integ-test Run OSS integration tests.
-s|--style-check Run OSS style check.
-c|--cypress-integ-test Run Code Editor UI tests.
-l|--local Run Code Editor UI tests against a local instance (requires -c).
-n|--no-patches Skip automatic patching of OSS.
-h|--help Show this help message and exit.
-w '<WEBSITE-URL>'|--website='<WEBSITE_URL>' URL of the Code Editor instance to test (default: http://localhost:9888).
-u|--unit-test Run OSS unit tests.
-i|--integ-test Run OSS integration tests.
-s|--style-check Run OSS style check.
-c|--cypress-integ-test Run Code Editor UI tests.
-l|--local Run Code Editor UI tests against a local instance (requires -c).
-n|--no-patches Skip automatic patching of OSS.
-h|--help Show this help message and exit.
```
***Note***: make sure you have the `'`quotes`'` around the website url.

Expand Down
7 changes: 2 additions & 5 deletions scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@

usage() {
printf """
Usage: $(basename $0) --website='<WEBSITE-URL>' [OPTIONS]
Required:
--website='<WEBSITE-URL>' URL of the Code Editor instance to test.
Usage: $(basename $0) [OPTIONS]
Options:
-w '<WEBSITE-URL>'| --website='<WEBSITE_URL>' URL of the Code Editor instance to test.
-w '<WEBSITE-URL>'|--website='<WEBSITE_URL>' URL of the Code Editor instance to test (default: http://localhost:9888).
-u|--unit-test Run OSS unit tests.
-i|--integ-test Run OSS integration tests.
-s|--style-check Run OSS style check.
Expand Down

0 comments on commit fbac79c

Please sign in to comment.