mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 16:28:12 -07:00
Clear the test configurations before adding new ones.
This commit is contained in:
parent
e493641d8d
commit
0dee89c8be
1 changed files with 6 additions and 1 deletions
|
@ -33,4 +33,9 @@ class TestConfig(val project: Project) {
|
|||
}
|
||||
|
||||
@Directive
|
||||
fun Project.test(init: TestConfig.() -> Unit) = this.testConfigs.add(TestConfig(this).apply { init() })
|
||||
fun Project.test(init: TestConfig.() -> Unit) = let { project ->
|
||||
with(this.testConfigs) {
|
||||
clear()
|
||||
add(TestConfig(project).apply { init() })
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue