Closed pmed closed 11 years ago
Hi Pavel,
Nice to see you started experimenting with lest beyond what I published. That's exactly what I hoped for.
However lest is as simple as I could think of to convey the basic idea as clearly as possible.
Also this may help people to start writing tests where they otherwise would not.
There are no doubt many directions in which to expand lest, such as grouping or tagging and a way of selecting tests, run tests concurrently to name a few. I'm curious what other people come up with.
So, I'd like to keep lest here as it. Maybe it's best I add a list of lest clones with a short description on how they expand on the basic lest.
I hope this seems reasonable thing to do.
cheers, Martin
Martin,
I understand your point. Thus test groups remain as an experiment.
Thank you for the library! It's really quite interesting.
Regards, Pavel
Thanks. I've added your 'experiment' to section Variants of lest
Hi Martin,
What do you think about grouping tests? I have experimented with this a bit.
I have added a test_group struct with a vector member for tests in the group.
There are additional overloads of run() function for the test_group and templated run() for test or group ranges.
A run_result struct is used to store number of failed tests and their total count. And all run() functions return run_result.
I see 2 disadvantages:
Regards, Pavel