Skip to content

Commit

Permalink
#53, #55: Clean up MySuperpomGradlePluginSmokeTest
Browse files Browse the repository at this point in the history
  • Loading branch information
tlinkowski committed Aug 26, 2019
1 parent 4c0f8c2 commit 43448d0
Showing 1 changed file with 8 additions and 6 deletions.
Expand Up @@ -41,12 +41,14 @@ class MySuperpomGradlePluginSmokeTest extends Specification {
'package.json'
]

private static final List<String> SUBPROJECTS = [
private static final List<String> TESTED_SUBPROJECTS = [
'java8-unmodularized',
'java8-modularized',
'java11-modularized',
'kotlin-modularized'
]
private static final List<String> PUBLISHED_SUBPROJECTS = TESTED_SUBPROJECTS + 'test-project'
private static final List<String> ALL_SUBPROJECTS = PUBLISHED_SUBPROJECTS + 'unpublished'

@AutoCleanup
private MySuperpomSmokeTestRunner runner
Expand All @@ -71,10 +73,8 @@ class MySuperpomGradlePluginSmokeTest extends Specification {
SAMPLE_SHARED_FILES.forEach { sampleProjectFileExists(it) }
and:
taskDidNotFail(result, ':build')
SUBPROJECTS.forEach {
taskWasSuccessful(result, ":$it:test")
taskWasSuccessful(result, ":$it:build")
}
TESTED_SUBPROJECTS.forEach { taskWasSuccessful(result, ":$it:test") }
ALL_SUBPROJECTS.forEach { taskWasSuccessful(result, ":$it:build") }
}

def 'gradle dependencyUpdates'() {
Expand Down Expand Up @@ -106,7 +106,9 @@ class MySuperpomGradlePluginSmokeTest extends Specification {
when:
def result = runner.build()
then:
SUBPROJECTS.forEach { taskWasSuccessful(result, ":$it:bintrayUpload") }
PUBLISHED_SUBPROJECTS.forEach { taskWasSuccessful(result, ":$it:bintrayUpload") }
(ALL_SUBPROJECTS - PUBLISHED_SUBPROJECTS).forEach { taskWasSkipped(result, ":$it:bintrayUpload") }

taskWasSuccessful(result, ':bintrayPublish')

taskWasSkipped(result, ':releaseToGitHub')
Expand Down

0 comments on commit 43448d0

Please sign in to comment.