https://kotlinlang.org logo
#strikt
Title
# strikt
c

christophsturm

12/08/2018, 11:10 AM
maybe in soft assertions the stacktrace for the specific failure should be for the line of the assertion and not for the line that contains the expect.
Copy code
@Test
    fun striktTest() {
        expect {
            that("test").isNotEqualTo("test")
            that("test").isEqualTo("test")
        }
    }
for this i get two stacktraces and both are for the expect line
r

robfletcher

12/08/2018, 3:53 PM
I’m not sure I can control that
c

christophsturm

12/08/2018, 5:19 PM
You can create the exception when the assertion fails
You’re not throwing it anyway, only the expect exception is really thrown.
r

robfletcher

12/08/2018, 6:45 PM
Fair point.
c

christophsturm

12/09/2018, 11:00 AM
Is that a small change? Btw are you still working on refactoring the internal api?
r

robfletcher

12/09/2018, 3:36 PM
Not at the moment