Skip to content

Commit

Permalink
Update of README.md and system property test.logLevel
Browse files Browse the repository at this point in the history
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
  • Loading branch information
dmatej committed Sep 18, 2022
1 parent 6acdb89 commit 5b31b87
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@ The Zip distributions can be found on following paths:

### Execution

:warning: Because GF7 is now in intensive development and depends on external snapshot dependencies, you have to build these dependencies first: `mvn clean install -f ./snapshots/pom.xml`

* `mvn clean install` - Full build including automatic QA and maven managed tests. Typical time: 5 minutes.
* `mvn clean install -Pfast` - Building all distribution artifacts, running just unit tests, QA and integration tests excluded. Typical time: 3 minutes.
* `mvn clean install -Pfastest` - Building all distribution artifacts, excluded all QA and testing. Typical time: 1.5 minutes.

You can use also some maven optimizations, ie. using `-T4C` to allow parallel build.

If you want to see more logs you can use the `-Dtest.logLevel=FINEST` option set to an appropriate log level.
Note that this applies just for tests which are executed by Maven and which use the **GlassFish Java Util Logging Extension (GJULE)**.

### Special Profiles

* `staging` - In some development stages may happen that some dependencies are available just in OSSRH staging repository.
Expand Down Expand Up @@ -63,7 +64,9 @@ They are quite old and have high technical debt, but at this moment they still p

### Old Additional Tests

:warning: if the script fails, sometimes it doesn't stop the domain and you have to do that manually.
:warning: If the script fails, sometimes it doesn't stop the domain and you have to do that manually.

:warning: Some of the scripts do inplace filtering or generate other sources which remain and later affect next executions. You have to remove those changes manually.

* `./runtests.sh batch_all` - Usual time: 1 minute
* `./runtests.sh cdi_all` - Usual time: 6 minutes
Expand Down
6 changes: 3 additions & 3 deletions nucleus/parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
<failsafe.argLine>${maven.test.jvmoptions}</failsafe.argLine>
<!-- GlassFishLogManager is a child of this module, so we cannot use it here yet. -->
<test.logManager>java.util.logging.LogManager</test.logManager>
<test.defaultLevel>INFO</test.defaultLevel>
<test.logLevel>INFO</test.logLevel>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -839,7 +839,7 @@
<systemProperties>
<java.util.logging.manager>${test.logManager}</java.util.logging.manager>
<java.util.logging.config.useDefaults>true</java.util.logging.config.useDefaults>
<java.util.logging.config.defaultLevel>${test.defaultLevel}</java.util.logging.config.defaultLevel>
<java.util.logging.config.defaultLevel>${test.logLevel}</java.util.logging.config.defaultLevel>
</systemProperties>
</configuration>
</plugin>
Expand All @@ -862,7 +862,7 @@
<systemProperties>
<java.util.logging.manager>${test.logManager}</java.util.logging.manager>
<java.util.logging.config.useDefaults>true</java.util.logging.config.useDefaults>
<java.util.logging.config.defaultLevel>${test.defaultLevel}</java.util.logging.config.defaultLevel>
<java.util.logging.config.defaultLevel>${test.logLevel}</java.util.logging.config.defaultLevel>
</systemProperties>
</configuration>
<executions>
Expand Down

0 comments on commit 5b31b87

Please sign in to comment.