mirror of
https://gitee.com/dcren/initializr.git
synced 2025-07-15 14:04:30 +08:00
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:
parent
c702be0260
commit
712003b436
@ -136,6 +136,9 @@
|
||||
<goal>test</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<systemProperties>
|
||||
<smoke.test>true</smoke.test>
|
||||
</systemProperties>
|
||||
<includes>
|
||||
<include>**/*SmokeTests.java</include>
|
||||
</includes>
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user