Skip to content

Commit cb40f8f

Browse files
committed
[docs] Add details on building and JUnit testing
1 parent 9c0c2ca commit cb40f8f

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

CONTRIBUTING.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,46 @@ Java 17 and Maven 3.8.6 (only if you want to build from the command-line), or ne
5353

5454
Simply `mvn clean verify`, this will run the tests (`-DskipTests` to skip them) and the resulting p2 repository and specific IDE applications will be available for further manual testing in `repository/target`.
5555

56+
To full build and test use the following commands:
57+
```
58+
$ cd <WildWebDeveloper project root directory>
59+
$ mvn clean install
60+
```
61+
62+
You can use `-DskipTests` argument to skip the JUnit tests execution:
63+
64+
```
65+
$ mvn clean install -DskipTests
66+
```
67+
68+
To run all the JUnit tests use the following commands:
69+
70+
```
71+
$ mvn clean verify
72+
```
73+
74+
Or you can run an individual JUnit test by using `-Dtest=...` argument, for example:
75+
76+
```
77+
$ mvn clean verify -Dtest=TestHTML
78+
```
79+
80+
In case you need to work on tests only or repeatedly execute several tests, it's easier and faster to build everything then run only the tests:
81+
82+
```
83+
$ cd <WildWebDeveloper project root directory>
84+
85+
# Build WWD:
86+
$ mvn clean install -DskipTests
87+
88+
# In order to run `org.eclipse.wildwebdeveloper.tests.TestHTML` use the following command:
89+
$ cd org.eclipse.wildwebdeveloper.tests/
90+
$ mvn clean verify -Dtest=TestHTML
91+
92+
#`Repeat running TestHTML or run any other tests, for example:
93+
$ mvn clean verify -Dtest=TestJSON
94+
```
95+
5696
### ⬆️ Version bump
5797

5898
Wild Web Developer tries to use OSGi Semantic Version (to properly expose its API contracts and breakage) and Reproducible Version Qualifiers (to minimize the avoid producing multiple equivalent artifacts for identical source). This requires the developer to manually bump version from time to time. Somes rules are that:

0 commit comments

Comments
 (0)