Skip to content

Commit

Permalink
[NOISSUE]
Browse files Browse the repository at this point in the history
auto test
  • Loading branch information
jj committed Feb 25, 2019
1 parent 060259e commit 1994587
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions backend/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ sourceSets {
java {
srcDirs = []
}
resources {
srcDir new File(buildDir, 'generated/ui')
}
}
integrationTest {
groovy {
Expand All @@ -197,6 +200,11 @@ sourceSets {
}
}

task copyUI(type: Copy) {
from tasks.findByPath(':ui:npm_run_buildProd').outputs
into new File(buildDir, 'generated/ui/static')
}

task integrationTest(type: Test) {
group = 'verification'
description = 'Run various integration tests'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
package edu.internet2.tier.shibboleth.admin.ui

import edu.internet2.tier.shibboleth.admin.ui.controller.BadJSONMetadataSourcesUiDefinitionControllerIntegrationTests
import jp.vmi.selenium.selenese.Main
import jp.vmi.selenium.selenese.Runner
import jp.vmi.selenium.selenese.config.DefaultConfig
import org.springframework.beans.factory.annotation.Value
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.context.annotation.ComponentScan
import org.springframework.context.annotation.FilterType
import org.springframework.test.context.ActiveProfiles
import spock.lang.Specification
import spock.lang.Unroll

@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes = [ShibbolethUiApplication])
@ComponentScan(excludeFilters = [@ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, value = [BadJSONMetadataSourcesUiDefinitionControllerIntegrationTests.Config, BadJSONMetadataSourcesUiDefinitionControllerIntegrationTests])])
@ActiveProfiles(['dev'])
class SeleniumSIDETest extends Specification {
@Value('${local.server.port}')
int randomPort
Expand Down

0 comments on commit 1994587

Please sign in to comment.