You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Explicitly clarify the difference between unit and system test files (microsoft#9419)
* Explicitly clarify the difference between unit and system test files
This aims to clarify for new contributors how to run the tests they've may have edited.
* There can be more than just `.test.ts`
For example: `.testvirtualenvs.ts`.
* Also mention functional tests
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,6 +74,8 @@ Use the `Extension` launch option.
74
74
75
75
### Running Unit Tests
76
76
77
+
Note: Unit tests are those in files with extension `.unit.test.ts`.
78
+
77
79
1. Make sure you have compiled all code (done automatically when using incremental building)
78
80
1. Ensure you have disabled breaking into 'Uncaught Exceptions' when running the Unit Tests
79
81
1. For the linters and formatters tests to pass successfully, you will need to have those corresponding Python libraries installed locally
@@ -97,8 +99,20 @@ Alter the `launch.json` file in the `"Debug Unit Tests"` section by setting the
97
99
```
98
100
...this will only run the suite with the tests you care about during a test run (be sure to set the debugger to run the `Debug Unit Tests` launcher).
99
101
102
+
### Running Functional Tests
103
+
104
+
Functional tests are those in files with extension `.functional.test.ts`.
105
+
These tests are similar to system tests in scope, but are run like unit tests.
106
+
107
+
You can run functional tests in a similar way to that for unit tests:
108
+
109
+
* via the "Functional Tests" launch option, or
110
+
* on the command line via `npm run test:functional`
111
+
100
112
### Running System Tests
101
113
114
+
Note: System tests are those in files with extension `.test*.ts` but which are neither `.functional.test.ts` nor `.unit.test.ts`.
115
+
102
116
1. Make sure you have compiled all code (done automatically when using incremental building)
103
117
1. Ensure you have disabled breaking into 'Uncaught Exceptions' when running the Unit Tests
104
118
1. For the linters and formatters tests to pass successfully, you will need to have those corresponding Python libraries installed locally by using the `./requirements.txt` and `build/test-requirements.txt` files
0 commit comments