Execute e2e tests as part of scm-it

This commit is contained in:
Sebastian Sdorra
2020-08-25 08:44:38 +02:00
parent 6c1a9f286f
commit 1a885b64c6
4 changed files with 35 additions and 6 deletions

View File

@@ -9,6 +9,7 @@
"build": "webpack --mode=production --config=scm-ui/ui-scripts/src/webpack.config.js",
"build:dev": "webpack --mode=development --config=scm-ui/ui-scripts/src/webpack.config.js",
"test": "lerna run --scope '@scm-manager/ui-*' --scope '@scm-manager/eslint-config' test",
"e2e-tests": "lerna run --scope '@scm-manager/e2e-tests' headless",
"typecheck": "lerna run --scope '@scm-manager/ui-*' typecheck",
"serve": "NODE_ENV=development webpack-dev-server --hot --mode=development --config=scm-ui/ui-scripts/src/webpack.config.js",
"deploy": "ui-scripts publish",

View File

@@ -186,6 +186,31 @@
</executions>
</plugin>
<plugin>
<groupId>com.github.sdorra</groupId>
<artifactId>buildfrontend-maven-plugin</artifactId>
<configuration>
<workingDirectory>${basedir}/..</workingDirectory>
<node>
<version>${nodejs.version}</version>
</node>
<pkgManager>
<type>YARN</type>
<version>${yarn.version}</version>
</pkgManager>
<script>e2e-tests</script>
</configuration>
<executions>
<execution>
<id>e2e</id>
<phase>integration-test</phase>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
@@ -284,7 +309,7 @@
<properties>
<scm.stage>DEVELOPMENT</scm.stage>
<scm.home>${project.parent.build.directory}/scm-it</scm.home>
<scm-it.logbackConfiguration>${project.basedir}/../scm-webapp/src/main/resources/logback.default.xml</scm-it.logbackConfiguration>
<scm-it.logbackConfiguration>${project.basedir}/../scm-webapp/src/main/resources/logback.ci.xml</scm-it.logbackConfiguration>
</properties>
</profile>

View File

@@ -6,6 +6,9 @@
"author": "Eduard Heimbuch <eduard.heimbuch@cloudogu.com>",
"license": "MIT",
"private": false,
"scripts": {
"headless": "cypress run"
},
"devDependencies": {
"cypress": "^4.12.0",
"eslint-plugin-cypress": "^2.11.1"

View File

@@ -2482,17 +2482,17 @@
dependencies:
"@types/node" ">= 8"
"@pmmmwh/react-refresh-webpack-plugin@^0.3.0":
version "0.3.3"
resolved "https://registry.yarnpkg.com/@pmmmwh/react-refresh-webpack-plugin/-/react-refresh-webpack-plugin-0.3.3.tgz#40a3d674f42a011b7f30a9609aa8fb68ec3c39c9"
integrity sha512-uc6FmPEegAZawSHjUMFQwU7EjaDn7zy1iD/KD/wBROL9F4378OES8MKMYHoRAKT61Fk7LxVKZSDR5VespMQiqw==
"@pmmmwh/react-refresh-webpack-plugin@^0.4.0":
version "0.4.1"
resolved "https://registry.yarnpkg.com/@pmmmwh/react-refresh-webpack-plugin/-/react-refresh-webpack-plugin-0.4.1.tgz#a4db0ed8e58c2f8566161c9a8cdf1d095c9a891b"
integrity sha512-MzM87WdX2r2KRFfhEho7oGyK1XRE/J9WwjB3v6oLQHN0dzBypBZxSWjnoYx+RWneRCsg8Sin1myf+EjX1fqIbQ==
dependencies:
ansi-html "^0.0.7"
error-stack-parser "^2.0.6"
html-entities "^1.2.1"
lodash.debounce "^4.0.8"
native-url "^0.2.6"
schema-utils "^2.6.5"
source-map "^0.7.3"
"@reach/router@^1.2.1":
version "1.3.3"