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/in-depth/testing.md
+29-2
Original file line number
Diff line number
Diff line change
@@ -42,13 +42,40 @@ magnitude, it is recommended to prefer unit tests wherever possible.
42
42
43
43
## Integration Testing
44
44
45
+
### Installing Screeps Server Mockup
46
+
47
+
Before starting to use integration testing, you must install [screeps-server-mockup](https://github.com/screepers/screeps-server-mockup) to your project.
48
+
Please view that repository for more instruction on installation.
49
+
50
+
```bash
51
+
# Using yarn:
52
+
yarn add -D screeps-server-mockup
53
+
# Using npm
54
+
npm install --save-dev screeps-server-mockup
55
+
```
56
+
57
+
You will also need to add scripts to run integration tests.
58
+
59
+
In `package.json`, add a new `test-integration` script and add the new integration testing to the main `test` script.
60
+
61
+
```json
62
+
"scripts": {
63
+
"test": "npm run test-unit && npm run test-integration",
0 commit comments