https://kotlinlang.org logo
Title
t

thanksforallthefish

10/12/2020, 6:08 AM
purely speculative, I did not try it yet, but shouldn’t
val employees: List<Employee> = ...
employees.shouldBeSorted()
          shouldHaveSize(4)
          shouldContain(Employee("Sam", "Chicago"))
be
val employees: List<Employee> = ...
employees.shouldBeSorted()
         .shouldHaveSize(4)
         .shouldContain(Employee("Sam", "Chicago"))
? in
Matchers return this
example
s

sam

10/12/2020, 8:29 AM
What's the difference
t

thanksforallthefish

10/12/2020, 8:32 AM
extra
.
in front of
should
for second and third expectation
s

sam

10/12/2020, 8:44 AM
Ahh yeah
Is this in the blog post
t

thanksforallthefish

10/12/2020, 8:52 AM
yes. and btw, also
Option to strip whitespace from test names
seems a bit odd. The normal output and the
removeTestNameWhitespace
output looks the same. probably in the first one you mean to have an extra line (again, just guessing, never used multi-line method names)
I just wanted to point out a couple of minor errors I saw in the blog post, which are probably obvious to everybody but better safe than sorry
s

sam

10/12/2020, 8:55 AM
Appreciate the heads up. I'll fix shortly
j

Jim

10/12/2020, 5:23 PM
Just want to point out that test case severity feature is 👌 I have a bunch of gradle machinery and test naming conventions to run a test if it's Smoke (Severe) or not (Normal) (essentially) for smoke tests since the severe suite is smaller and faster
s

sam

10/12/2020, 5:24 PM
nice
wasn't my idea, it was sergei's, he did all the hard work
j

Jim

10/12/2020, 5:25 PM
It's the feature I needed and never knew that I did, I'm super stoked on this! 🎉
😂 1