1 | ## Running Xplat CLI Tests
|
2 |
|
3 | #### Pre-requisite
|
4 |
|
5 | * [Setup Environment Variables](./EnvironmentVariables.md)
|
6 | * [Authentication and Account setup](./Authentication.md)
|
7 |
|
8 | #### Run Tests
|
9 | * Running tests for both the modes: ARM, ASM
|
10 | This will execute all the tests mentioned in tests/testlist.txt and tests/testlistarm.txt
|
11 | ```
|
12 | npm test
|
13 | ```
|
14 |
|
15 | * Running **ASM** tests:
|
16 | This will execute all the tests mentioned in tests/testlist.txt
|
17 | ```
|
18 | npm -s run-script unit
|
19 | ```
|
20 |
|
21 | * Running **ARM** tests:
|
22 | This will execute all the tests mentioned in tests/testlistarm.txt
|
23 | ```
|
24 | npm -s run-script unit-arm
|
25 | ```
|
26 |
|
27 | * Running selective tests: Comment unrequired tests in test/testlist.txt or test/testlistarm.txt depending on which tests need to be run. A test can be commented by putting **#** at the start of a line in testlist[arm].txt.
|
28 |
|
29 | #### Test Logs
|
30 | Logs for each test run can be found in a time stamped .lof file under the **"/test/output/"** directory.
|
31 | For example - **"/test/output/test_log_2015_3_25_14_14_26.log"**
|