Skip to content

Commit

Permalink
Fix test that confirms "failing test" behavior ... so it runs tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
niloc132 committed Jul 11, 2020
1 parent 97c5409 commit 3b5e1b7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/it/failing-htmlunit-test/invoker.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Make sure we only run j2cl:test and not surefire's test, so that we are sure the j2cl side failed
invoker.goals=j2cl:test
invoker.goals=test

# Verify that the result is failure
invoker.buildResult=failure
12 changes: 11 additions & 1 deletion src/it/failing-htmlunit-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,24 @@
</dependencies>
<build>
<plugins>
<!-- turn off surefire so that it doesnt fail before our j2cl test -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M4</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>

<plugin>
<groupId>@project.groupId@</groupId>
<artifactId>@project.artifactId@</artifactId>
<version>@project.version@</version>
<executions>
<execution>
<id>test-js</id>
<phase>prepare-package</phase>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
Expand Down

0 comments on commit 3b5e1b7

Please sign in to comment.