-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #96 from duncdrum/int-tests
test(cypress): port cypress tests
- Loading branch information
Showing
10 changed files
with
1,550 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,6 @@ | |
.idea/ | ||
target/ | ||
node_modules/ | ||
|
||
src/test/cypress/videos/* | ||
src/test/cypress/screenshots/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,36 @@ | ||
language: java | ||
|
||
dist: xenial | ||
addons: | ||
apt: | ||
packages: | ||
- libgconf-2-4 | ||
|
||
language: java | ||
jdk: | ||
- openjdk8 | ||
- openjdk11 | ||
|
||
matrix: | ||
include: | ||
- jdk: openjdk8 | ||
- jdk: openjdk9 | ||
- jdk: openjdk10 | ||
- jdk: openjdk11 | ||
- jdk: openjdk12 | ||
services: | ||
- docker | ||
|
||
cache: | ||
directories: | ||
- $HOME/.m2 | ||
|
||
env: | ||
- img=existdb/existdb:latest | ||
# - img=existdb/existdb:release | ||
|
||
before_install: | ||
- docker pull $img | ||
- docker create --name exist-ci -p 8080:8080 $img | ||
|
||
before_script: | ||
# DP: changes to registered service might not be immediately available here | ||
- docker cp ./target/monex-*.xar exist-ci:exist/autodeploy | ||
- docker start exist-ci | ||
# exist needs time | ||
- sleep 30 | ||
|
||
script: | ||
- npm ci | ||
- npm run cypress -- --record |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"baseUrl": "http://localhost:8080/exist/apps", | ||
"fileServerFolder": "src/main/xar-resources", | ||
"ignoreTestFiles": "src/test/cypress/integration/examples/*.js", | ||
"fixturesFolder": "src/test/cypress/fixtures", | ||
"integrationFolder": "src/test/cypress/integration", | ||
"pluginsFile": "src/test/cypress/plugins/index.js", | ||
"screenshotsFolder": "src/test/cypress/screenshots", | ||
"supportFile": "src/test/cypress/support/index.js", | ||
"videosFolder": "src/test/cypress/videos", | ||
"projectId": "snavwf" | ||
} |
Oops, something went wrong.