0

I was confronted with a Think-Cell development position test in which a big part - if not the most important part - was testing the final version of the program one has written that contained a template class. So lots of testing is possible.

In my experience from open source projects the bare minimum is tested to make the program run&done and solve bugs by "creative users" that do stuff programmers wouldn't ever come up with.

In the books I red and I learned from was just some minimal input IO handling for int/char/strings but nothing explicitly about testing the program with all/the most possible use cases.

But I really like the idea of writing a test program that covers all events/possible use cases especially a commercial use case and I can Imagine writing one general testing library that fires all kinds of data on the program that covers as much as possible would be handy wouldn't it?

And yes, I already googled and found some unit testing posts from '08 '10 also qt unit testing or '04 and after that google test seem to dominate the market but even there one has to come up with all the different test cases that really takes time f.e in case of template classes. Also the Qt toolkit already has a Qt unit testing library

So my question is: How do you / What do you use or do to test your projects/programs in 2020? Do I have to write/come up with my own testing methods/classes redundant for every program/project every time new? Isn't there already a way to automate the testing in a way errors/warnings are showing up f.e. in the qt creator during the programming process?

Ingo Mi
  • 999
  • 12
  • 26
  • 2
    I use the testing framework that is part of `CMake` since all of my projects are using CMake anyways. – drescherjm Jun 02 '20 at 17:25
  • @drescherjm Thanks for your fast answer, I just googled it and found an article about TDD https://bastian.rieck.me/blog/posts/2017/simple_unit_tests/ that really is a way to think about "to write the unit tests before you write your actual code" – Ingo Mi Jun 02 '20 at 17:31

0 Answers0