October 2018
Intermediate to advanced
590 pages
15h 5m
English
In order to run the test against the URL through port 8080, we will need to ask @vue/cli-service to not start the dev server by providing a --url parameter to the command, like the following:
"scripts": { ... "test:e2e": "vue-cli-service test:e2e", "test:integration": "vue-cli-service test:e2e --url http://localhost:8080/", ...},
Then, let's change the execution of the integration test in pom.xml to the following:
<execution> <id>frontend e2e test</id> ... <configuration> <executable>npm</executable> <arguments> <argument>run</argument> <argument>test:integration</argument> </arguments> </configuration></execution>
In this way, with the npm test command, we will still run tests against http://localhost:3000 and, with ...
Read now
Unlock full access