Commit 0a4a6188 authored by michi's avatar michi

Improves auto-redeploy execution performance

The performance of the auto-redeploy executions configured in Maven have
been improved by adjusting the directories watched by the plugin
responsible for the redeployment.
parent 6341d60f
......@@ -26,7 +26,7 @@ comandos (desde la raíz el proyecto):
Una vez configurada la base de datos podemos lanzar la ejecución con el comando:
`mvn -Prun package cargo:run`
`mvn -Prun clean package cargo:run`
La aplicación se servirá en la URL local: http://localhost:9080/DAAExample
......@@ -38,7 +38,7 @@ Durante el desarrollo es interesante que la apliación se redespliegue de forma
automática cada vez que se hace un cambio. Para ello podemos utilizar el
siguiente comand:
`mvn -Prun package cargo:start fizzed-watcher:run`
`mvn -Prun clean package cargo:start fizzed-watcher:run`
La aplicación se servirá en la URL local: http://localhost:9080/DAAExample
......@@ -51,7 +51,7 @@ A diferencia del modo de redespliegue automático anterior, en este caso
cambios en las clases Java harán que se redespliegue el *backend*, mientras que
los cambios en Angular harán que se redespliegue el *frontend*.
`mvn -Prun-independent-autoredeploy exec:exec@npm-build exec:exec@npm-start package cargo:start fizzed-watcher:run`
`mvn -Prun-independent-autoredeploy clean exec:exec@npm-build exec:exec@npm-start package cargo:start fizzed-watcher:run`
La aplicación se servirá en local:
......@@ -85,4 +85,4 @@ despliega la aplicación configurada para utilizar una base de datos HSQL. Las
pruebas se hacen sobre la interfaz web con Selenium, que iniciará un Firefox
local de forma automática.
`mvn -Pacceptance-tests-cargo install`
`mvn -Pacceptance-tests install`
......@@ -420,7 +420,7 @@
<profiles>
<profile>
<id>acceptance-tests-cargo</id>
<id>acceptance-tests</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
......@@ -604,7 +604,7 @@
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<skipTests>true</skipTests>
<skipTests>true</skipTests>
<skip-npm-install>true</skip-npm-install>
</properties>
......@@ -618,8 +618,13 @@
<skipTouch>true</skipTouch>
<watches>
<watch>
<directory>src/main</directory>
<exclude>src/main/angular/node_modules</exclude>
<directory>src/main/java</directory>
</watch>
<watch>
<directory>src/main/webapp</directory>
</watch>
<watch>
<directory>src/main/angular/src</directory>
</watch>
</watches>
<goals>
......@@ -700,26 +705,26 @@
<goal>exec</goal>
</configuration>
<executions>
<execution>
<id>npm-build</id>
<configuration>
<arguments>
<argument>run</argument>
<argument>build</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>npm-start</id>
<configuration>
<async>true</async>
<asyncDestroyOnShutdown>true</asyncDestroyOnShutdown>
<arguments>
<argument>start</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>npm-build</id>
<configuration>
<arguments>
<argument>run</argument>
<argument>build</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>npm-start</id>
<configuration>
<async>true</async>
<asyncDestroyOnShutdown>true</asyncDestroyOnShutdown>
<arguments>
<argument>start</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
......@@ -731,8 +736,10 @@
<skipTouch>true</skipTouch>
<watches>
<watch>
<directory>src/main</directory>
<exclude>src/main/angular</exclude>
<directory>src/main/java</directory>
</watch>
<watch>
<directory>src/main/webapp</directory>
</watch>
</watches>
<goals>
......
This diff is collapsed.
{
"name": "daa-example",
"version": "0.2.0-alpha.8",
"version": "0.2.0-alpha.9",
"scripts": {
"ng": "./node_modules/.bin/ng",
"start": "./node_modules/.bin/ng serve",
......
......@@ -58,7 +58,7 @@ import es.uvigo.esei.daa.web.pages.MainPage;
@DatabaseSetup("/datasets/dataset.xml")
@ExpectedDatabase("/datasets/dataset.xml")
public class PeopleWebTest {
private static final int DEFAULT_WAIT_TIME = 1;
private static final int DEFAULT_WAIT_TIME = 5;
private WebDriver driver;
private MainPage mainPage;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment