new ReporterConfiguration( getReportsDirectory(), isTrimStackTrace() );
Artifact testNgArtifact;
testNgArtifact = getTestNgArtifact();
DirectoryScannerParameters directoryScannerParameters = null;
final boolean isTestNg = testNgArtifact != null;
TestArtifactInfo testNg =
isTestNg ? new TestArtifactInfo( testNgArtifact.getVersion(), testNgArtifact.getClassifier() ) : null;
List<File> testXml = getSuiteXmlFiles() != null ? Arrays.asList( getSuiteXmlFiles() ) : null;
TestRequest testSuiteDefinition =
new TestRequest( testXml, getTestSourceDirectory(), getTest(), getTestMethod(),
getRerunFailingTestsCount() );
final boolean actualFailIfNoTests;
if ( isValidSuiteXmlFileConfig() && getTest() == null )
{
actualFailIfNoTests = getFailIfNoTests() != null && getFailIfNoTests();
if ( !isTestNg )
{
throw new MojoExecutionException( "suiteXmlFiles is configured, but there is no TestNG dependency" );
}
}
else
{
if ( isSpecificTestSpecified() )
{
actualFailIfNoTests = getEffectiveFailIfNoTests();
setFailIfNoTests( actualFailIfNoTests );
}
else
{
actualFailIfNoTests = getFailIfNoTests() != null && getFailIfNoTests();
}
List<String> actualIncludes = getIncludeList();
List<String> actualExcludes = getExcludeList();
List<String> specificTests = getSpecificTests();
directoryScannerParameters =
new DirectoryScannerParameters( getTestClassesDirectory(), actualIncludes, actualExcludes,
specificTests, actualFailIfNoTests, getRunOrder() );
}
Properties providerProperties = getProperties();