Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

Commit

Permalink
Introduce E2E Testing using TestCáfe
Browse files Browse the repository at this point in the history
`yarn e2etest` in the client folder starts theia and the tests via a package.json script.

Signed-off-by: simonGraband <[email protected]>
  • Loading branch information
sgraband committed Jan 7, 2020
1 parent 78a0c3e commit 6e31d44
Show file tree
Hide file tree
Showing 6 changed files with 711 additions and 4 deletions.
3 changes: 3 additions & 0 deletions client/.testcaferc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"tsConfigPath": "./tests/tsconfig.json"
}
6 changes: 5 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@
"watch": "lerna run --parallel watch",
"publish": "yarn && yarn publish:latest",
"publish:latest": "lerna publish",
"publish:next": "lerna publish --exact --canary=next --npm-tag=next --yes"
"publish:next": "lerna publish --exact --canary=next --npm-tag=next --yes",
"theia:start": "cd browser-app && yarn start",
"testcafe:start": "testcafe chrome tests/test.ts",
"e2etest": "npm-run-all --parallel --aggregate-output theia:start testcafe:start"
},
"devDependencies": {
"lerna": "2.4.0",
"npm-run-all": "^4.1.5",
"tslint": "^5.5.0"
},
"resolutions": {
Expand Down
3 changes: 3 additions & 0 deletions client/tests/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"defaultPort": 3000
}
Loading

0 comments on commit 6e31d44

Please sign in to comment.