Open paul-hammant opened 6 years ago
AFAIK it is not implemented yet.
Guide could point that out explicitly :)
Hmm, can you paste your spek class?
@raniejade Who? Why?
@paul-hammat of course you :). To know what's incompatible. Running it
s individually is supported by the plugin.
Ah, so this works for you and your projects?
Project: https://github.com/paul-hammant/jooby-tiddlywiki-backend/settings
Speks that offer "Nothing Here" inside intellij: https://github.com/paul-hammant/jooby-tiddlywiki-backend/blob/master/src/test/kotlin/gamma/WebDriverSpec.kt#L90
Looks like a legit bug, this is what causing it:
fun SpecBody.jooby(app: Jooby, body: SpecBody.() -> Unit) {
beforeGroup {
app.start(
"server.join=false",
"mapdb.file=test.db",
"mapdb.testing=true"
)
}
body()
afterGroup {
app.stop()
}
}
Maybe just change it for now, to:
fun SpecBody.jooby(app: Jooby) {
beforeGroup {
app.start(
"server.join=false",
"mapdb.file=test.db",
"mapdb.testing=true"
)
}
afterGroup {
app.stop()
}
}
Then using it, instead of:
jooby(app) {
// test code here
}
Do:
jooby(app)
// test code here
I'm looking in Jooby's own source for that and see - https://github.com/search?q=org%3Ajooby-project+SpecBody.jooby&type=Code
I'm wondering if I should just wait for you to fix something and do a release (implicit from "legit bug" in your text). I mean waiting for this feature is OK.
I'll fix it on the plugin for 2.x
, but I'm not inclined to backport it to 1.x
plugin as it is not a critical issue. Backporting is not as easy as cherry-picking since the two codebases have diverged.
@raniejade thank you. I think we can use your workaround :) I also found another bug in the same section but in another project. Single test/group fail with NPE. You can reproduce it this way: clone https://github.com/eraga/async-jpa and launch any single test from idea. But dont try hbase tests package, it requires some additional setup. Do I need to open separate ticket for this?
I encounter this, when I clicked on the green triangle.
I don't know what I configured incorrectly, or what version of what is subtly incompatible. Some advice to be added to the documentation?