forked from josdejong/mathjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhyperexecute.yaml
32 lines (26 loc) · 853 Bytes
/
hyperexecute.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
version: 0.1
runson: win # defines the OS to test on
concurrency: 1 # number of machines to execute the testcases
autosplit: true
# pre steps sets up the environment for testing
pre:
- npm install
- npm install karma -g
- npm install -g karma-jasmine
- npm install karma-safari-launcher -g
- npm install karma-webdriver-launcher -g
- npm i karma-mocha -g
- npm i karma-webpack -g
- npm i mocha -g
# Smart cache
cacheKey: '{{ checksum "package-lock.json" }}'
cacheDirectories:
- node_modules
# testDiscovery is used to discover all the test cases in test/unit-tests folder
testDiscovery:
type: raw
mode: dynamic
command: grep -nri 'describe' test/unit-tests -ir --include=*.test.js | sed 's/:.*//'
# command to execute the test cases
testRunnerCommand: karma start test/browser-test-config/lt_karma.js --spec= $test