1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
---
description: >-
Instructions regarding testing new features, directed at both developers and
maintainers
---
# Testing
{% hint style="info" %}
This section is very much still WIP. Feel free to help expand it.
{% endhint %}
## Developers & Contributors
This section applies to you if you're opening a pull request to any of the Northstar repos.
Whatever your change includes, whether a bug fix or a new feature make sure to test it appropriately.
This means if your change is a bug fix, it's recommend you first make sure you can reproduce the bug. Then after making the necessary changes to fix it, test it using the same method you used to originally confirm the bug.\
When you're opening a pull request, make sure to mention how to reproduce the bug, so that reviewers can confirm that your chance indeed fixed the issue.
If your change is a new feature, make sure to test both that the newly added functionality performs as expected, as well as ensuring that it doesn't introduce any form of regression bugs. This means, testing anything that might be affected by your new feature.
## Maintainers
This section applies to you if you're someone who's able to merge PRs in any of the repos of the Northstar GitHub org as well as when simplying performing reviews, even without being able to actually merge a PR.
When reviewing pull requests on GitHub, make sure to checkout the changes made by a PR locally and test it there. In particular, test the parts of the code that are touched by a PR.
After testing, make sure to mention the steps tested in your review.
## Tips and toolkits
(might require `sv_cheats 1`)
**Spawn titan/grunt:**
- For titan: `ent_create npc_titan; ent_fire !picker setteam 2`
- For grunt: `ent_create npc_soldier; ent_fire !picker setteam 2`
**Add fake lag for network testing**
`net_fakelag 200` -> 200ms network lag
```
] find net_fake
[info] "net_fakelag" = "0" ( CHEAT ) - Lag all incoming network data (including loopback) by this many milliseconds.
[info] "net_fakeloss" = "0" - Simulate packet loss as a percentage (negative means drop 1/n packets)
[info] "net_fakelag_clientOnly" = "1" ( CHEAT ) - Fakelag won't affect the server, only clients
[info] "net_fakelagjitter" = "0" - Jitter net_fakelag packet time
```
|