Skip to content
Success

Changes

Summary

  1. Mark slow and resource intensive tests with a JUnit test category (details)
  2. Add maven property scout.excludeTestCategories (details)
  3. Fix ProcessingExceptionTest (details)
Commit fb1a5a4724f86558fde99158a169d6e452c08a47 by Ralph Steiner
Mark slow and resource intensive tests with a JUnit test category

Mark JobManagerLoadTest as a resource intensive test as it requires up
to 25k native threads.
Mark tests which require more than five seconds to be executed as slow
tests.

Change-Id: I45773bd89763b98d195753b915768d57a217533e
Reviewed-on: https://git.eclipse.org/r/161036
Tested-by: CI Bot
Reviewed-by: Beat Schwarzentrub <bsh@bsiag.com>
The file was modified org.eclipse.scout.rt.mom.jms.test/src/test/java/org/eclipse/scout/rt/mom/jms/JmsMomImplementorTest.java (diff)
The file was addedorg.eclipse.scout.rt.platform.test/src/main/java/org/eclipse/scout/rt/testing/platform/testcategory/ITestCategory.java
The file was modified org.eclipse.scout.rt.platform.test/src/test/java/org/eclipse/scout/rt/platform/job/JobFutureTaskTest.java (diff)
The file was addedorg.eclipse.scout.rt.platform.test/src/main/java/org/eclipse/scout/rt/testing/platform/testcategory/SlowTest.java
The file was addedorg.eclipse.scout.rt.platform.test/src/main/java/org/eclipse/scout/rt/testing/platform/testcategory/ResourceIntensiveTest.java
The file was modified org.eclipse.scout.rt.platform.test/src/test/java/org/eclipse/scout/rt/platform/job/internal/SerialFutureExecutionTest.java (diff)
The file was modified org.eclipse.scout.rt.platform.test/src/test/java/org/eclipse/scout/rt/platform/job/ScheduleAtFixedRateTest.java (diff)
The file was modified org.eclipse.scout.rt.platform.test/src/test/java/org/eclipse/scout/rt/platform/job/ScheduleWithFixedDelayTest.java (diff)
The file was modified org.eclipse.scout.rt.platform.test/src/test/java/org/eclipse/scout/rt/platform/job/JobManagerLoadTest.java (diff)
The file was modified org.eclipse.scout.rt.platform.test/src/test/java/org/eclipse/scout/rt/platform/job/internal/ExecutionSemaphoreTest.java (diff)
Commit 424c24e99e5880bedb7474eb0dc32945669d14e4 by Ralph Steiner
Add maven property scout.excludeTestCategories

Maven property scout.excludeTestCategories allows to set excluded JUnit
test categories.
This additional property is required as not all tests depend on
platform.test module and therefore test category class may not be
available. If a test category class is not available maven surefire
cannot load JUnit test category classes and will fail. In later surefire
releases this would generate only a warning.

In a future scout release these test categories will be replaced by
JUnit 5 tags and then the build may be simplified.

Change-Id: I1a9d245a30b86b2845296f080d8ca65882fd16d9
The file was modified org.eclipse.scout.rt/pom.xml (diff)
The file was modified org.eclipse.scout.rt.mom.jms.test/pom.xml (diff)
The file was modified org.eclipse.scout.rt.platform.test/pom.xml (diff)
Commit 4561a0c6a0e210a3dbb1de531454110b7d7de71f by Ralph Steiner
Fix ProcessingExceptionTest

JUnit might run a test method in chain. In such a call chain the
stacktrace has duplicated elements.

Change-Id: Ibaf10baaa6610ec42a8a83b0371907ce7e6dac5c
The file was modified org.eclipse.scout.rt.platform.test/src/test/java/org/eclipse/scout/rt/platform/exception/ProcessingExceptionTest.java (diff)