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.
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.