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
Copy file name to clipboardExpand all lines: docs/CONTRIBUTING.md
+15-5
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,9 @@
8
8
-[Development workflow](#development-workflow)
9
9
-[Updates to VS Code](#updates-to-vs-code)
10
10
-[Build](#build)
11
-
-[Test](#test)
11
+
-[Test](#test)
12
12
-[Unit tests](#unit-tests)
13
+
-[Script tests](#script-tests)
13
14
-[Integration tests](#integration-tests)
14
15
-[End-to-end tests](#end-to-end-tests)
15
16
-[Structure](#structure)
@@ -129,13 +130,14 @@ yarn package
129
130
> If you need your builds to support older distros, run the build commands
130
131
> inside a Docker container with all the build requirements installed.
131
132
132
-
###Test
133
+
## Test
133
134
134
-
There are three kinds of tests in code-server:
135
+
There are four kinds of tests in code-server:
135
136
136
137
1. Unit tests
137
-
2. Integration tests
138
-
3. End-to-end tests
138
+
2. Script tests
139
+
3. Integration tests
140
+
4. End-to-end tests
139
141
140
142
### Unit tests
141
143
@@ -146,6 +148,14 @@ These live under [test/unit](../test/unit).
146
148
147
149
We use unit tests for functions and things that can be tested in isolation. The file structure is modeled closely after `/src` so it's easy for people to know where test files should live.
148
150
151
+
### Script tests
152
+
153
+
Our script tests are written in bash and run using [bats](https://github.com/bats-core/bats-core).
154
+
155
+
These tests live under `test/scripts`.
156
+
157
+
We use these to test anything related to our scripts (most of which live under `ci`).
158
+
149
159
### Integration tests
150
160
151
161
These are a work in progress. We build code-server and run a script called
0 commit comments