From e3cfbaf175ff216d87c30e39879b0cdf0eecadcc Mon Sep 17 00:00:00 2001 From: decentral1se Date: Sun, 10 Apr 2022 10:20:57 +0200 Subject: [PATCH 1/2] docs: how to run all tests --- docs/testing.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/testing.md b/docs/testing.md index c9dcb1c..43f6fac 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -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 From 49fa1fde14ffbc533a721ad7fa35a238e98a8c1a Mon Sep 17 00:00:00 2001 From: decentral1se Date: Sun, 10 Apr 2022 10:21:06 +0200 Subject: [PATCH 2/2] chore: ignore new test files --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 809baf8..3cd9e6e 100644 --- a/.gitignore +++ b/.gitignore @@ -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