Adding dedicated folder for external tests

This commit is contained in:
Jarosław Sadziński
2022-09-30 16:45:28 +02:00
parent 433e1ecfc2
commit 51d839f082
13 changed files with 19 additions and 2 deletions

View File

@@ -0,0 +1 @@
import "test/nbrowser/ActionLog";

View File

@@ -0,0 +1 @@
import "test/nbrowser/ChoiceList";

View File

@@ -0,0 +1 @@
import "test/nbrowser/DuplicateDocument";

1
test/deployment/Fork.ts Normal file
View File

@@ -0,0 +1 @@
import "test/nbrowser/Fork";

View File

@@ -0,0 +1 @@
import "test/nbrowser/Pages";

1
test/deployment/Pages.ts Normal file
View File

@@ -0,0 +1 @@
import "test/nbrowser/Pages";

View File

@@ -0,0 +1,4 @@
# Deployment tests
Link or import here all tests that can be run against an external server or
a docker container (i.e: tests that don't rely on in-memory TestServer).

View File

@@ -0,0 +1 @@
import "test/nbrowser/ReferenceColumns";

View File

@@ -0,0 +1 @@
import "test/nbrowser/ReferenceList";

1
test/deployment/Smoke.ts Normal file
View File

@@ -0,0 +1 @@
import "test/nbrowser/Smoke";

View File

@@ -117,7 +117,10 @@ describe("Localization", function() {
});
});
it("breaks the server if something is wrong with resource files", async () => {
it("breaks the server if something is wrong with resource files", async function() {
if (server.isExternalServer()) {
this.skip();
}
const oldEnv = new testUtils.EnvironmentSnapshot();
try {
// Wrong path to locales.

View File

@@ -64,4 +64,4 @@ TEST_ADD_SAMPLES=1 TEST_ACCOUNT_PASSWORD=not-needed \
GRIST_SESSION_COOKIE=grist_test_cookie \
GRIST_TEST_LOGIN=1 \
NODE_PATH=_build:_build/stubs \
$MOCHA _build/test/nbrowser/*.js -g ${GREP_TESTS:-''} "$@"
$MOCHA _build/test/deployment/*.js --slow 6000 -g ${GREP_TESTS:-''} "$@"