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

New configuration does not work. #40

Closed
tasomaniac opened this issue Mar 20, 2019 · 2 comments
Closed

New configuration does not work. #40

tasomaniac opened this issue Mar 20, 2019 · 2 comments

Comments

@tasomaniac
Copy link
Collaborator

tasomaniac commented Mar 20, 2019

I'm not sure if it works in Kotlin Gradle DSL but below does not work with Groovy projects.

https://github.com/fourlastor/pickle/#configuration

pickle {
    androidTest {
      featuresDir = 'features' // location of features inside `androidTest/src/assets`
    }
}

The error is:

> Could not find method androidTest() for arguments [setup_bdd_test_8aihs9lwmlmtcmk67w5u4oihx$_run_closure1$_closure4@6b3ad53c] on object of type com.fourlastor.pickle.PicklePlugin$Extension.
@fourlastor
Copy link
Owner

You're right, I think it should be androidTest =

@tasomaniac
Copy link
Collaborator Author

It's a common practice to support the usage described in the README though. It works out of the box if you use Gradle's property and input APIs.

Otherwise the way to do it is to have

fun androidTest(action: Action<TestExtension>) {
    action.apply(...)
}

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

2 participants