Wrt final discussion about replacing macro's: please don't. The macro's, besides addressing the technical issues, make for a nice DSL. I use Catch/2 daily, thanks for making it!
So, uh, a correction: `random(-10000, 10000)` will generate 20k inputs, because what it actually does is to create the full range and then apply random permutation over it. In general, the current generators are not quite baked yet.
Is there an elegant way to pack tests with catch2 in the same project where all my original source code is? So that in CLion I would just have multiple configurations like "Run tests" and "Run project" (debug/release). What is the proper way?
Nice! Catch is such an easy to use test framework.
When he opens CLion, his machine enters rocket launching mode. Fortunately, he had enough memory
"What's that sound, is someone vacuuming? Oh, it's just his laptop."
Oh yeah, that poor MacBook is sweating.
Fan noise: Exists.
Two years later.
Apple ARM: You're already dead, you know?
Fan noise: ...
Finally I become nostalgia gimmick after all then.
rocket launching mode? lol
more true now in the Nova era than when this comment first dropped
Wrt final discussion about replacing macro's: please don't. The macro's, besides addressing the technical issues, make for a nice DSL.
I use Catch/2 daily, thanks for making it!
I've been using old Catch. This talk makes me to imagine more test codes.,..!
So, uh, a correction: `random(-10000, 10000)` will generate 20k inputs, because what it actually does is to create the full range and then apply random permutation over it. In general, the current generators are not quite baked yet.
Is there an elegant way to pack tests with catch2 in the same project where all my original source code is? So that in CLion I would just have multiple configurations like "Run tests" and "Run project" (debug/release). What is the proper way?
This is covered in a tutorial on the jetbrains website: www.jetbrains.com/help/clion/unit-testing-tutorial.html
What about mocking?