Switch off smoke tests by default in IDE

The Maven build now sets a System property smoke.test=true. The tests
are skipped if this is not set, so by default the IDE will not run them.
This commit is contained in:
Dave Syer 2016-09-26 16:54:25 +01:00
parent c702be0260
commit 712003b436
2 changed files with 8 additions and 4 deletions

View File

@ -136,6 +136,9 @@
<goal>test</goal>
</goals>
<configuration>
<systemProperties>
<smoke.test>true</smoke.test>
</systemProperties>
<includes>
<include>**/*SmokeTests.java</include>
</includes>

View File

@ -16,11 +16,15 @@
package io.spring.initializr.web.project
import static org.junit.Assert.assertEquals
import static org.junit.Assert.assertTrue
import geb.Browser
import io.spring.initializr.test.generator.ProjectAssert
import io.spring.initializr.web.AbstractInitializrControllerIntegrationTests
import io.spring.initializr.web.project.test.HomePage
import org.junit.After
import org.junit.Assume
import org.junit.Before
import org.junit.Test
import org.openqa.selenium.Keys
@ -28,12 +32,8 @@ import org.openqa.selenium.WebDriver
import org.openqa.selenium.firefox.FirefoxDriver
import org.openqa.selenium.firefox.FirefoxProfile
import org.openqa.selenium.interactions.Actions
import org.springframework.test.context.ActiveProfiles
import static org.junit.Assert.assertEquals
import static org.junit.Assert.assertTrue
/**
*
* @author Stephane Nicoll
@ -50,6 +50,7 @@ class ProjectGenerationSmokeTests extends AbstractInitializrControllerIntegratio
@Before
void setup() {
Assume.assumeTrue("Not in smoke test (System property smoke.test not set)", Boolean.getBoolean("smoke.test"))
downloadDir = folder.newFolder()
FirefoxProfile fxProfile = new FirefoxProfile();