Skip to content

Commit

Permalink
Adding information about testing skipping the URL tests (#990)
Browse files Browse the repository at this point in the history
  • Loading branch information
agoncal committed Jun 15, 2023
1 parent 76c8e1b commit 2d765d5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,16 @@ Testing the rules
To limit the XML-based tests (`windup.test.xml`) which are run, use `-DrunTestsMatching=...`.
The value can be any part of the test filename to match. Like, `-DrunTestsMatching=hsearch`.

By default, when executing the tests, the `href` attributes of the `<link>` tags are also tested. This means that there is an external request to each URL.
If you want to avoid this, you can use the `-Dtest=WindupRulesTest` flag in conjunction with the `-f` flag:

```
mvn clean test -f rules -Dtest=WindupRulesTest -DrunTestsMatching=hsearch
```

Building from source
-----------

Ensure you use the provided Maven Wrapper utility to build the project, as Windup requires Maven 3.8.8:

./mvnw verify
./mvnw verify

0 comments on commit 2d765d5

Please sign in to comment.