We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e3c8bd commit e077f2dCopy full SHA for e077f2d
ci/dev/test.sh
@@ -10,7 +10,18 @@ main() {
10
# include our source files.
11
cd "$OLDPWD"
12
# We use the same environment variables set in ci.yml in the test job
13
- CS_DISABLE_PLUGINS=true PASSWORD=e45432jklfdsab CODE_SERVER_ADDRESS=http://localhost:8080 ./test/node_modules/.bin/jest "$@"
+ if [[ -z ${PASSWORD+x} ]] || [[ -z ${CODE_SERVER_ADDRESS+x} ]]; then
14
+ echo "The end-to-end testing suites rely on your local environment"
15
+ echo -e "\n"
16
+ echo "Please set the following environment variables locally:"
17
+ echo " \$PASSWORD"
18
+ echo " \$CODE_SERVER_ADDRESS"
19
20
+ echo "Please make sure you have code-server running locally."
21
22
+ exit 1
23
+ fi
24
+ CS_DISABLE_PLUGINS=true ./test/node_modules/.bin/jest "$@"
25
}
26
27
main "$@"
0 commit comments