Revize 153ea984
Přidáno uživatelem Patrik Harag před více než 5 roky(ů)
sources/imiger-core/pom.xml | ||
---|---|---|
56 | 56 |
</plugin> |
57 | 57 |
|
58 | 58 |
<plugin> |
59 |
<!-- npm integration --> |
|
60 | 59 |
<groupId>org.codehaus.mojo</groupId> |
61 | 60 |
<artifactId>exec-maven-plugin</artifactId> |
62 | 61 |
<version>1.6.0</version> |
63 | 62 |
<executions> |
64 |
<!-- The following will ensure `npm install` is called --> |
|
65 | 63 |
<execution> |
64 |
<!-- npm integration --> |
|
65 |
<!-- The following will ensure `npm install` is called --> |
|
66 | 66 |
<id>npm install</id> |
67 | 67 |
<goals> |
68 | 68 |
<goal>exec</goal> |
... | ... | |
76 | 76 |
<workingDirectory>${project.basedir}/src/main/webapp</workingDirectory> |
77 | 77 |
</configuration> |
78 | 78 |
</execution> |
79 |
<execution> |
|
80 |
<!-- Run Robot framework tests --> |
|
81 |
<!-- mvn exec:exec@ui-tests --> |
|
82 |
<id>ui-tests</id> |
|
83 |
<phase>none</phase> <!-- On demand only --> |
|
84 |
<goals> |
|
85 |
<goal>exec</goal> |
|
86 |
</goals> |
|
87 |
<configuration> |
|
88 |
<executable>robot</executable> |
|
89 |
<arguments> |
|
90 |
<argument>--outputdir</argument> |
|
91 |
<argument>${project.build.directory}/robot-tests</argument> |
|
92 |
<argument>${project.basedir}/src/test/robot</argument> |
|
93 |
</arguments> |
|
94 |
</configuration> |
|
95 |
</execution> |
|
79 | 96 |
</executions> |
80 | 97 |
</plugin> |
81 | 98 |
</plugins> |
sources/imiger-core/src/test/robot/README.md | ||
---|---|---|
41 | 41 |
|
42 | 42 |
`robot --outputdir ./output --test "General" ./graph.robot` |
43 | 43 |
|
44 |
Or using Maven: |
|
45 |
|
|
46 |
`mvn exec:exec@ui-tests` (imiger-core) |
|
47 |
|
|
44 | 48 |
### 5. Check results |
45 | 49 |
|
46 | 50 |
In your output folder (`./` by default), there should be a HTML file called `report.html`. It contains additional details about executed test runs. |
Také k dispozici: Unified diff
Run UI tests from maven (#7266)
mvn exec:exec@ui-tests