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
-[Commits and commit history](#commits-and-commit-history)
10
+
-[Development workflow](#development-workflow)
11
+
-[Updates to VS Code](#updates-to-vs-code)
12
+
-[Build](#build)
11
13
-[Test](#test)
12
-
-[Unit tests](#unit-tests)
13
-
-[Integration tests](#integration-tests)
14
-
-[End-to-end tests](#end-to-end-tests)
15
-
-[Structure](#structure)
16
-
-[Modifications to VS Code](#modifications-to-vs-code)
17
-
-[Currently Known Issues](#currently-known-issues)
14
+
-[Unit tests](#unit-tests)
15
+
-[Script tests](#script-tests)
16
+
-[Integration tests](#integration-tests)
17
+
-[End-to-end tests](#end-to-end-tests)
18
+
-[Structure](#structure)
19
+
-[Modifications to VS Code](#modifications-to-vs-code)
20
+
-[Currently Known Issues](#currently-known-issues)
18
21
19
22
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
20
23
@@ -129,13 +132,14 @@ yarn package
129
132
> If you need your builds to support older distros, run the build commands
130
133
> inside a Docker container with all the build requirements installed.
131
134
132
-
###Test
135
+
## Test
133
136
134
-
There are three kinds of tests in code-server:
137
+
There are four kinds of tests in code-server:
135
138
136
139
1. Unit tests
137
-
2. Integration tests
138
-
3. End-to-end tests
140
+
2. Script tests
141
+
3. Integration tests
142
+
4. End-to-end tests
139
143
140
144
### Unit tests
141
145
@@ -146,6 +150,14 @@ These live under [test/unit](../test/unit).
146
150
147
151
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
152
153
+
### Script tests
154
+
155
+
Our script tests are written in bash and run using [bats](https://github.com/bats-core/bats-core).
156
+
157
+
These tests live under `test/scripts`.
158
+
159
+
We use these to test anything related to our scripts (most of which live under `ci`).
160
+
149
161
### Integration tests
150
162
151
163
These are a work in progress. We build code-server and run a script called
0 commit comments