Prepared 2.0.0-alpha.2 is out! This release conta...
# opensavvy
c
Prepared 2.0.0-alpha.2 is out! This release contains a breaking change! The second parameter to the
test()
function, which was used to inject a coroutine context was removed, so you will need to replace:
Copy code
test("Foo", yourCoroutineContext) {
    // your test
}
by:
Copy code
test("Foo", Context(yourCoroutineContext)) {
    // your test
}
This makes the library simpler, as there is a single concept to configure tests,
TestConfig
, which users can extend themselves. Full changelogWebsite
d
I suppose you decided against using java 11 for Prepared @CLOVIS? I'm now working on an Android app and missing it terribly...
Btw the reference section is a bit messy with the full package names in the side menu:
c
I suppose you decided against using java 11 for Prepared @CLOVIS? I'm now working on an Android app and missing it terribly...
Still not decided 😕 I think I'm in favor of switching to Java 11, but that probably means I have to downgrade all OpenSavvy projects, and I don't know if that's even possible at this stage
For the API reference display issue, please create issues here, preferably with ideas of how to improve it
For the JDK version; if you want, create a MR with the JVM toolchain set to 11 on all Prepared modules. If it passes the pipeline, it will be a pretty strong argument in favor of downgrading the JDK!
d
I'd like to, but it seems like I don't really know how to open an MR in Intellij... I could maybe push the commit to my fork though... Also, another thing I would have liked is nested test results in Intellij... is that still blocked? Even if you could just do it for jvm it would be great! And does the Kotlin Test version support focus and exclusions like Kotest's? I'll try to get to the issue soon...
c
> I would have liked is nested test results in Intellij As we discussed previously, it's not possible with the Kotest runner… If you use the Kotlin-test runner it should work though. But that one doesn't support Kotlin Native. Hopefully we should have a prototype of KTI relatively soon which should support nested tests on all platforms. > And does the Kotlin Test version support focus and exclusions like Kotest's? It does not, no, that's a Kotest feature. However, you can pass
Ignored
in any test's or suite's config to ignore a test (but there's no equivalent for focus)
👍🏼 1
@dave08 have you been able to test your Prepared MR against a real project? If so, please comment here so I can merge it: https://gitlab.com/opensavvy/groundwork/prepared/-/merge_requests/123
d
A lot happened since... i've been on the backend of our project since we've talked, so i didn't have a chance to go back to the front end. And my computer died.... so i had to switch computers. I hope in the next few days i'll finally get to this, thanks for this! I'm sure when i get back to our app it'll come in handy!
c
No problem, ping me when you get the chance :)
👍🏼 1