-
-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#1114 print build path in projectHealth
- Loading branch information
1 parent
731bef1
commit 9a02fcc
Showing
3 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
src/functionalTest/groovy/com/autonomousapps/jvm/ProjectHealthSpec.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Copyright (c) 2024. Tony Robalik. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
package com.autonomousapps.jvm | ||
|
||
import com.autonomousapps.jvm.projects.AbiGenericsProject | ||
import com.autonomousapps.jvm.projects.AbiGenericsProject.SourceKind | ||
|
||
import static com.autonomousapps.utils.Runner.build | ||
import static com.google.common.truth.Truth.assertThat | ||
|
||
final class ProjectHealthSpec extends AbstractJvmSpec { | ||
|
||
def "projectHealth prints build file path (#gradleVersion)"() { | ||
given: | ||
def project = new AbiGenericsProject(SourceKind.METHOD) | ||
gradleProject = project.gradleProject | ||
when: | ||
def result = build(gradleVersion, gradleProject.rootDir, 'projectHealth') | ||
then: | ||
assertThat(result.output).contains( | ||
"""${gradleProject.rootDir.getPath()}/proj/build.gradle | ||
|Existing dependencies which should be modified to be as indicated: | ||
| api project(':genericsBar') (was implementation) | ||
| api project(':genericsFoo') (was implementation) | ||
|""".stripMargin()) | ||
where: | ||
gradleVersion << gradleVersions() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters