-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Ralph Steiner
committed
Apr 16, 2020
1 parent
6afa53b
commit d56edb4
Showing
10 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
....test/src/main/java/org/eclipse/scout/rt/testing/platform/testcategory/ITestCategory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package org.eclipse.scout.rt.testing.platform.testcategory; | ||
|
||
import org.junit.experimental.categories.Category; | ||
|
||
/** | ||
* Marker interface for test categories used with JUnit {@link Category} | ||
*/ | ||
public interface ITestCategory { | ||
} |
13 changes: 13 additions & 0 deletions
13
...c/main/java/org/eclipse/scout/rt/testing/platform/testcategory/ResourceIntensiveTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.eclipse.scout.rt.testing.platform.testcategory; | ||
|
||
import org.junit.experimental.categories.Category; | ||
|
||
/** | ||
* A marker interface for tests which require a lot of system resource. Some test environments have strict resource | ||
* limits and may not be able to provide e.g. 10k native threads. Test which require a lot of threads, cpu or memory | ||
* should be tagged with this category. | ||
* <p> | ||
* Used together with {@link Category} annotation in unit-tests. | ||
*/ | ||
public interface ResourceIntensiveTest extends ITestCategory { | ||
} |
12 changes: 12 additions & 0 deletions
12
...tform.test/src/main/java/org/eclipse/scout/rt/testing/platform/testcategory/SlowTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.eclipse.scout.rt.testing.platform.testcategory; | ||
|
||
import org.junit.experimental.categories.Category; | ||
|
||
/** | ||
* A marker interface for tests which require a lot of time to be executed. These tests can be excluded during | ||
* continuous builds but are run on a daily basis. Try to avoid this category by rewriting tests. | ||
* <p> | ||
* Used together with {@link Category} annotation in unit-tests. | ||
*/ | ||
public interface SlowTest extends ITestCategory { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters