Skip to content

Move junitPlatform configuration into android namespace #37

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

Closed
mannodermaus opened this issue Dec 3, 2017 · 1 comment
Closed

Move junitPlatform configuration into android namespace #37

mannodermaus opened this issue Dec 3, 2017 · 1 comment

Comments

@mannodermaus
Copy link
Owner

We have been using the junitPlatform configuration closure in the same place as the Java-based plugin, however it would be preferable to use either android.defaultConfig or android.testOptions in Android environments.

@mannodermaus mannodermaus added this to the plugin-1.0.22 milestone Dec 3, 2017
@mannodermaus
Copy link
Owner Author

Potentially, the resulting DSL could look like this:

android {
  testOptions {
    junitPlatform {
      jupiterVersion "..."
      vintageVersion "..."

      // Other properties from the Java-based plugin's extension
      // ...

      // Our existing parameters
      applyDefaultTestOptions true

      // New: Related to instrumented tests
      instrumentedTests {
        enabled true
        version "" // Override suggested default
      }
    }
  }
}

For starters, the top-level junitPlatform would redirect everything to android.testOptions, but log a deprecation warning as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant