Merge pull request #312 from decentral1se/how-to-run-tests

This commit is contained in:
Henry 2022-04-11 08:45:05 +02:00 committed by GitHub
commit 7b1bf012dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

1
.gitignore vendored
View File

@ -15,6 +15,7 @@ muxrpc/test/nodejs/testrun
web/handlers/testrun
web/handlers/admin/testrun
roomdb/sqlite/testrun
web/i18n/i18ntesting/testrun/
# build artifacts from node.js project web/styles
node_modules

View File

@ -10,6 +10,16 @@ working (it does not regress.) These tests are scattered around the repositories
they are always contained in a file ending with `_test.go`—a compiler-enforced naming
convention for Golang tests.
## Running all tests
You'll need to have Node.js v14 installed before running this.
```
go test ./...
```
This command can be run at the root of the repository.
## Structure
Most routes are focused on administrating the room server. Tasks such as adding new users,
editing notices (like the _Welcome_ or _Code of Conduct_ pages). These are routes that require