As a user I would like to be able to get a custom model from a Gradle build to collect dependencies.
Total Runs | Success Rate | Failures | Errors | Skipped | Total time (ms) |
---|---|---|---|---|---|
8 | 100.0% | 0 | 0 | 0 | 0.038 seconds |
TestSubject:
Issues:
See:
- https://gradle.org
- https://github.com/bmuschko/tooling-api-custom-model
- https://docs.gradle.org/current/javadoc/org/gradle/api/Project.html
- io.github.gregoranders.gradle.dependencies.tooling.model.api.Project
Features
- should contain expected sub project
- should contain expected configuration
- should return a set with one configuration
- should return expected project path
- should return expected project version
- should return expected project description
- should return expected project name
- should return expected project group
should contain expected sub project
Result: PASS Time: 0
- Expect should equal sub project
testSubject.subProjects()[0] == subProject
should contain expected configuration
Result: PASS Time: 0.002 seconds
- Expect should equal provided configuration
testSubject.configurations()[0] == configuration
should return a set with one configuration
Result: PASS Time: 0
- Expect set of configurations should have one element
testSubject.configurations().size() == 1
should return expected project path
Result: PASS Time: 0
- Expect name to equal “testProjectPath”
testSubject.path() == projectPath
should return expected project version
Result: PASS Time: 0
- Expect name to equal “testProjectVersion”
testSubject.version() == projectVersion
should return expected project description
Result: PASS Time: 0
- Expect name to equal “testProjectDescription”
testSubject.description() == projectDescription
should return expected project name
Result: PASS Time: 0
- Expect name to equal “testProjectName”
testSubject.name() == projectName
should return expected project group
Result: PASS Time: 0
- Expect name to equal “testProjectGroup”
testSubject.group() == projectGroup