mirror of
https://gitee.com/dcren/initializr.git
synced 2026-09-19 14:27:41 +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:
@@ -136,6 +136,9 @@
|
|||||||
<goal>test</goal>
|
<goal>test</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
|
<systemProperties>
|
||||||
|
<smoke.test>true</smoke.test>
|
||||||
|
</systemProperties>
|
||||||
<includes>
|
<includes>
|
||||||
<include>**/*SmokeTests.java</include>
|
<include>**/*SmokeTests.java</include>
|
||||||
</includes>
|
</includes>
|
||||||
|
|||||||
+5
-4
@@ -16,11 +16,15 @@
|
|||||||
|
|
||||||
package io.spring.initializr.web.project
|
package io.spring.initializr.web.project
|
||||||
|
|
||||||
|
import static org.junit.Assert.assertEquals
|
||||||
|
import static org.junit.Assert.assertTrue
|
||||||
import geb.Browser
|
import geb.Browser
|
||||||
import io.spring.initializr.test.generator.ProjectAssert
|
import io.spring.initializr.test.generator.ProjectAssert
|
||||||
import io.spring.initializr.web.AbstractInitializrControllerIntegrationTests
|
import io.spring.initializr.web.AbstractInitializrControllerIntegrationTests
|
||||||
import io.spring.initializr.web.project.test.HomePage
|
import io.spring.initializr.web.project.test.HomePage
|
||||||
|
|
||||||
import org.junit.After
|
import org.junit.After
|
||||||
|
import org.junit.Assume
|
||||||
import org.junit.Before
|
import org.junit.Before
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import org.openqa.selenium.Keys
|
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.FirefoxDriver
|
||||||
import org.openqa.selenium.firefox.FirefoxProfile
|
import org.openqa.selenium.firefox.FirefoxProfile
|
||||||
import org.openqa.selenium.interactions.Actions
|
import org.openqa.selenium.interactions.Actions
|
||||||
|
|
||||||
import org.springframework.test.context.ActiveProfiles
|
import org.springframework.test.context.ActiveProfiles
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals
|
|
||||||
import static org.junit.Assert.assertTrue
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Stephane Nicoll
|
* @author Stephane Nicoll
|
||||||
@@ -50,6 +50,7 @@ class ProjectGenerationSmokeTests extends AbstractInitializrControllerIntegratio
|
|||||||
|
|
||||||
@Before
|
@Before
|
||||||
void setup() {
|
void setup() {
|
||||||
|
Assume.assumeTrue("Not in smoke test (System property smoke.test not set)", Boolean.getBoolean("smoke.test"))
|
||||||
downloadDir = folder.newFolder()
|
downloadDir = folder.newFolder()
|
||||||
FirefoxProfile fxProfile = new FirefoxProfile();
|
FirefoxProfile fxProfile = new FirefoxProfile();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user