PageRenderTime 5ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/maven-amps-plugin/src/it/integrationTest/validate.groovy

https://bitbucket.org/mmeinhold/amps
Groovy | 13 lines | 9 code | 4 blank | 0 comment | 1 complexity | c1ed4ce38355c0a7b3be6f113996c553 MD5 | raw file
 1assert mavenExitCode == 0, "The maven build should not have failed!"
 2
 3def product = project.properties['shitty.product']
 4product = 'amps'.equals(product) ? 'refapp' : product
 5
 6def surefireReports = new File(basedir, 'target/shitty-it-surefire-reports')
 7assert !surefireReports.exists(), "No unit test should have been run, see $surefireReports.absolutePath"
 8
 9def integrationSurefireReports = new File(basedir, "target/group-__no_test_group__/tomcat6x/surefire-reports")
10assert integrationSurefireReports.exists(), "Integration tests should have run and created test reports in $integrationSurefireReports"
11
12assert new File(integrationSurefireReports, 'it.com.atlassian.amps.IntegrationTest.txt').exists(), "IntegrationTest.txt file did not exist"
13assert !new File(integrationSurefireReports, 'com.atlassian.amps.unit.UnitTest.txt').exists(), "UnitTest.txt file should not exist"