mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
RM-2206 (Dynamic test suite configuration)
+review RM-49 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@104045 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -33,7 +33,7 @@ import org.junit.runner.RunWith;
|
|||||||
@RunWith(ClasspathSuite.class)
|
@RunWith(ClasspathSuite.class)
|
||||||
@SuiteTypes({SuiteType.TEST_CLASSES, SuiteType.RUN_WITH_CLASSES, SuiteType.JUNIT38_TEST_CLASSES})
|
@SuiteTypes({SuiteType.TEST_CLASSES, SuiteType.RUN_WITH_CLASSES, SuiteType.JUNIT38_TEST_CLASSES})
|
||||||
@ClassnameFilters({
|
@ClassnameFilters({
|
||||||
// Execute all tests classes ending with "Test"
|
// Execute all test classes ending with "Test"
|
||||||
".*Test",
|
".*Test",
|
||||||
// Exclude the ones ending with "UnitTest"
|
// Exclude the ones ending with "UnitTest"
|
||||||
"!.*UnitTest",
|
"!.*UnitTest",
|
||||||
@@ -47,7 +47,9 @@ import org.junit.runner.RunWith;
|
|||||||
"!.*NotificationServiceHelperSystemTest",
|
"!.*NotificationServiceHelperSystemTest",
|
||||||
"!.*RetryingTransactionHelperBaseTest",
|
"!.*RetryingTransactionHelperBaseTest",
|
||||||
"!.*RMCaveatConfigServiceImplTest",
|
"!.*RMCaveatConfigServiceImplTest",
|
||||||
// This test is running successfully locally but not on bamboo
|
// This test is running successfully locally but not on bamboo (if executed as a single test).
|
||||||
|
// The problem can be reproduced if the whole test suite is run locally as well.
|
||||||
|
// Tests should not be dependant on other test classes and should run in any order without any problems.
|
||||||
"!.*EmailMapScriptTest"
|
"!.*EmailMapScriptTest"
|
||||||
})
|
})
|
||||||
public class AllTestSuite
|
public class AllTestSuite
|
||||||
|
@@ -30,7 +30,7 @@ import org.junit.runner.RunWith;
|
|||||||
*/
|
*/
|
||||||
@RunWith(ClasspathSuite.class)
|
@RunWith(ClasspathSuite.class)
|
||||||
@ClassnameFilters({
|
@ClassnameFilters({
|
||||||
// Execute all tests classes ending with "UnitTest"
|
// Execute all test classes ending with "UnitTest"
|
||||||
".*UnitTest",
|
".*UnitTest",
|
||||||
// Put the test classes you want to exclude here
|
// Put the test classes you want to exclude here
|
||||||
"!.*FilePlanPermissionServiceImplUnitTest"
|
"!.*FilePlanPermissionServiceImplUnitTest"
|
||||||
|
Reference in New Issue
Block a user