Open samarseneault opened 2 years ago
Thanks for the work! Can we remove the dependency on Google Test? I'd prefer the core of Buzz to stay in C, and to avoid extra dependencies I don't plan to maintain.
Thanks for the work! Can we remove the dependency on Google Test? I'd prefer the core of Buzz to stay in C, and to avoid extra dependencies I don't plan to maintain.
We could, either by using something like cppunit or by creating homemade tests. However, Google Test is the most user friendly testing framework I found. In my (humble) opinion, a good test framework might be useful to incentivize future devs to contribute to tests.
I am OK with using a testing library. I just don't like dependencies for things that I could write in a couple of hours. Adding dependencies has a cost: you must maintain them, and you need to handle the case in which an OS didn't catch up with a new version, but another did. I spent 3 days fixing Qt dependency hell for this very reason, and I'd like to minimize this kind of issues.
So, what does Google Test offer that is indispensable? Can we reproduce that functionality with a small set of macros rather than adding a new dependency, whichever it is?
Hi, sorry for the delay, I was quite busy recently.
It is true that technically, macros or other custom testing code could achieve anything Google test can. In my opinion, with custom code, it would simply be harder to achieve the same test quality and integration with build tools (Github actions, CMake, etc). But then again, maybe this is not the sought after direction.
If you want, I can remove the dependancy on Google test I had previously inserted in the repo once this PR is merged.
To fix issue #104 , comparisons between strings and floats as well as between strings and ints were disallowed (removed) Tests were adjusted accordingly.