We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Here is script example I specify foo.Test in className, but in generated configuration class is empty
buildscript { repositories { maven { url "https://plugins.gradle.org/m2/" } } dependencies { classpath "gradle.plugin.org.jetbrains.gradle.plugin.idea-ext:gradle-idea-ext:0.7" } } apply plugin: "org.jetbrains.gradle.plugin.idea-ext" import org.jetbrains.gradle.ext.* idea.project.settings { runConfigurations { "Simulation"(JUnit) { className = 'foo.Test' } } }
The text was updated successfully, but these errors were encountered:
This map entry should be "class" instead of "className" (see JUnitRunConfigurationImporter):
JUnitRunConfigurationImporter
gradle-idea-ext-plugin/src/main/groovy/org/jetbrains/gradle/ext/RunConfigurations.groovy
Line 314 in faba0ca
I'm working around this by subclassing JUnit to add the correct entry:
JUnit
open class JUnitExt @Inject constructor(nameParam: String) : JUnit(nameParam) { override fun toMap(): MutableMap<String, *> { val map = HashMap(super.toMap()) map["class"] = className return map } } ideaProject.settings.runConfigurations { registerFactory(JUnitExt::class.java) { name -> project.objects.newInstance(JUnitExt::class.java, name) } }
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Here is script example
I specify foo.Test in className, but in generated configuration class is empty
The text was updated successfully, but these errors were encountered: