writing unit tests because good software means eating your vegetables
@BestGirlGrace Good testing tools are criminally undervalued. Especially in languages that don’t already have strong testing cultures. I feel like a lot of languages have frameworks that copy RSpec in a shallow way without realizing what makes it actually good (it isn’t just the DSL).
@benhamill See, I cut my teeth in a world where everyone's trying to copy JUnit/NUnit/XUnit, and I'm not sure those was ever that good in the first place. Anything else feels like a breath of fresh air.
Especially since catch2 seems to match up really well with how my brain wants to structure tests.
@BestGirlGrace Yeah. JUnit is… bad. It’s like a lot of Java, IMO, it works but very little thought was put in to usability and mental ergonomics.
granted, kotlin supports doing a bunch of rspec-style stuff, since you can write more or less any string as the names of test methods and you can install a should dsl in extension method form
it probably sucks if you actually use junit with java code
@benhamill @BestGirlGrace yeah, you don't get that with junit. having just a setup and teardown hook for the entire class of test cases is not nearly as nice as having arbitrarily nestable context blocks
i would assume there's a kotlin-specific test library that actually does support that stuff, since kotlin has very nice lambda support and could trivially provide a structure just like rspec? but we're just using junit
@BestGirlGrace I have absolutely no idea if it'd even be possible to write unit tests for df-ai and weblegends
Don't let the name fool you. All the pornography here is legal, and much of it is hand-written. No fascists, no bigots.