Skip to content
Snippets Groups Projects
Commit 104e2933 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

#431 - skip tests if test profile is not activated

parent 95f51979
Branches
Tags
No related merge requests found
Pipeline #1444 failed
......@@ -31,6 +31,11 @@ public class SeleniumTestExecutionListener extends AbstractTestExecutionListener
@Override
public void prepareTestInstance(TestContext testContext)
{
if(!System.getProperties().contains("test"))
{
throw new RuntimeException("Test profile not activated. Skipping tests. (Set -Dtest=true in your VM arguments)");
}
if(webDriver != null)
{
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment