codejanovic
12/26/2016, 3:33 PMspek-junit-platform-engine:1.0.89
, so i got an AbstractMethodError
😄happy15
12/26/2016, 3:44 PMcodejanovic
12/26/2016, 4:32 PMhappy15
12/26/2016, 5:01 PMjunt-platform-runner
in version 1.0.0-M2
. Now the error is java.lang.AssertionError: Built-in class Cloneable is not found
. seems better 😂codejanovic
12/26/2016, 5:02 PMcodejanovic
12/26/2016, 11:11 PMhappy15
12/27/2016, 4:03 AMiamsteveholmes
12/27/2016, 5:35 PMhappy15
12/28/2016, 12:55 PM@RunWith(JUnitPlatform::class)
before class
iamsteveholmes
12/28/2016, 6:00 PMcodejanovic
12/28/2016, 10:26 PM@RunWith(JUnitPlatform::class)
unless your on androidsimon.vergauwen
12/31/2016, 11:33 AMclean
job before running the test. Or they're extremely flaky.simon.vergauwen
12/31/2016, 11:34 AMgradle clean test
or have the test
task depend on clean
which is fine.simon.vergauwen
12/31/2016, 11:35 AMjohn.shelley
12/31/2016, 4:30 PMiamsteveholmes
01/04/2017, 7:32 PMiamsteveholmes
01/04/2017, 7:33 PMraniejade
01/05/2017, 2:44 PM1.1.0-beta3
is out and available in bintray 🙂 https://github.com/JetBrains/spek/releases/tag/v1.1.0-beta3raniejade
01/05/2017, 2:52 PMjdiaz
01/05/2017, 3:12 PMjdiaz
01/05/2017, 3:12 PMraniejade
01/05/2017, 3:26 PMv0.3.2
of the idea plugin is out.adambl4
01/05/2017, 3:37 PMit("5")
is never executed
{
describe("1") {
on("2") {
beforeEachTest { throw Exception() }
it("3") {}
}
on("4") {
it("5") {}
}
}
}
But I'm not sure if it worked beforeadambl4
01/05/2017, 3:40 PMraniejade
01/05/2017, 3:41 PMraniejade
01/05/2017, 3:41 PMbeforeEachTest
is not allowed inside onraniejade
01/05/2017, 3:41 PMraniejade
01/05/2017, 3:42 PMraniejade
01/05/2017, 3:42 PMclass ContextGivenOnSpec : Spek({
given("a calculator") {
val calculator = Calculator()
var result: Int
on("addition") {
result = calculator.add(2, 4)
it("should return the result of adding the first number to the second number") {
assertEquals(6, result)
}
}
on("subtraction") {
result = calculator.subtract(4, 2)
it("should return the result of subtracting the second number from the first number") {
assertEquals(2, result)
}
}
}
})
raniejade
01/05/2017, 3:44 PMbeforeEachTest
is being invoked in the scope of describe("1")