Platform (jvm, jdk8, js, android): jvm
We have not yet migrated all specs to spek2.
Following a list modules in which there are still spek1 specs
Search for import org.jetbrains.spek.api.Spekand for TODO #116 to find those specs
TODO:
import org.jetbrains.spek.api.Spek replace with import org.spekframework.spek2.Spekimport org.jetbrains.spek.api.include replace with import ch.tutteli.atrium.specs.includeimport ch.tutteli.atrium.verbs.internal.AssertionVerbFactory replace with import ch.tutteli.atrium.api.verbs.internal.AssertionVerbFactoryimport ch.tutteli.atrium.spec. replace with import ch.tutteli.atrium.specstest( replace with it(group( replace with context(on( repalce with context(verbs.checkImmediately replace with verbs.checkdescribeFun => see https://github.com/robstoll/atrium/pull/209/files#diff-676c33efc276af1070bfde5d55307d9dR23describeSee https://spekframework.org/migration/ for additional hints on the topic
I'll work on ... if you would like to migrate one of the specs Hey @robstoll, I would love working on this.
@monst12 nice :+1: I suggest you start off by migrating one spek and create a PR for it before you move on to the next one.
Hi @robstoll I would like to work on this issue, how do you suggest I should get started?
Hi @assaflei
How about you start with the following (all very similar):
Those should be very easy (not much more than changing the import I guess but you will see).
After those you could continue with (a second PR):
core/robstoll-lib/atrium-core-robstoll-lib-jvm/src/test/kotlin/ch/tutteli/atrium/core/robstoll/lib/reporting/DetailedObjectFormatterSpec.kt
The following commit shows what was necessary to migrate DelegatingAssertionCheckerSpec which is probably similar:
https://github.com/robstoll/atrium/pull/209/files
Also have a look at the hints in the description of this issue. Let me know in case you need more help
All necessary specs have been migrated, closing this. Follow up for moving things will follow