Skip to content

Commit 460783f

Browse files
committed
split tests
1 parent 88a08b0 commit 460783f

3 files changed

Lines changed: 13 additions & 5 deletions

File tree

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,4 @@ script:
4040
- gulp electron
4141
- gulp compile
4242
- ./scripts/test.sh
43+
- ./scripts/test-integration.sh

scripts/test-integration.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
set -e
3+
4+
if [[ "$OSTYPE" == "darwin"* ]]; then
5+
realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"; }
6+
ROOT=$(dirname $(dirname $(realpath "$0")))
7+
else
8+
ROOT=$(dirname $(dirname $(readlink -f $0)))
9+
fi
10+
11+
# Integration Tests
12+
./scripts/code.sh $ROOT/extensions/vscode-api-tests/testWorkspace --extensionDevelopmentPath=$ROOT/extensions/vscode-api-tests --extensionTestsPath=$ROOT/extensions/vscode-api-tests/out

scripts/test.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,3 @@ else
1818
./.build/electron/electron \
1919
node_modules/mocha/bin/_mocha $*
2020
fi
21-
22-
# Integration Tests
23-
if [[ "$SKIP_INTEGRATION_TESTS" == "" ]]; then
24-
./scripts/code.sh $ROOT/extensions/vscode-api-tests/testWorkspace --extensionDevelopmentPath=$ROOT/extensions/vscode-api-tests --extensionTestsPath=$ROOT/extensions/vscode-api-tests/out
25-
fi

0 commit comments

Comments
 (0)