Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test value wrapper for Provider<RegularFile> should not be based on buildDir #7

Open
Larusso opened this issue Nov 27, 2021 · 0 comments
Assignees

Comments

@Larusso
Copy link
Member

Larusso commented Nov 27, 2021

Description

When wrapping string path values to type Provider<RegularFile> the absolute path will be based on the buildDir not the project directory like the normal RegularFile wrapper would use.
This can lead to undesired testing behaviors.

case "RegularFile":
value = "project.layout.projectDirectory.file(${wrapValueBasedOnType(rawValue, String, fallback)})"
break
case "Provider":
switch (subType) {
case "RegularFile":
value = "project.layout.buildDirectory.file(${wrapValueBasedOnType(rawValue, String, fallback)})"
break
case "Directory":

@Larusso Larusso self-assigned this Nov 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant