Skip to content
This repository was archived by the owner on Aug 19, 2020. It is now read-only.

Add helper for useTestNG setting options on test #206

Closed
JLLeitschuh opened this issue Dec 22, 2016 · 2 comments
Closed

Add helper for useTestNG setting options on test #206

JLLeitschuh opened this issue Dec 22, 2016 · 2 comments

Comments

@JLLeitschuh
Copy link
Contributor

Something like this should be sufficient:

fun Test.useTestNG(options: TestNGOptions.() -> Unit) {
    useTestNG(closureOf(options))
}

Not sure where this should be added.

@eskatos
Copy link
Member

eskatos commented Jan 6, 2017

Thanks for the report @JLLeitschuh

It applies to a bunch of Test task's methods, e.g. useJUnit is affected too.
We need to add type-safe methods for these in the Test task to fix this properly.

@eskatos
Copy link
Member

eskatos commented Jan 19, 2017

See gradle/gradle#1202

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

3 participants