Git Product home page Git Product logo

Comments (3)

Solomon1732 avatar Solomon1732 commented on August 16, 2024 1

From a very short search I found a list of some unit tests in Wikipedia:
https://en.wikipedia.org/wiki/List_of_unit_testing_frameworks#C

Also found this Unity test suite:
http://www.throwtheswitch.org/unity

Didn't investigate any other test suite, but from a short look at Unity it seems simple enough.
Perhaps if you like it enough it can save you a move towards a different language (less to rewrite and all that).

EDIT: There is also CppUTest which is good for both C and C++. An advantage is that it exists as a package in both Debian and Ubuntu (no idea about Unity or other test suites).
https://cpputest.github.io/

from detox.

dharple avatar dharple commented on August 16, 2024 1

Thanks, @Solomon1732! I ended up going down the rewrite path, anyway, using the language I use daily at work, and I'm using the same unit testing framework that I use at work. My C is so rusty it's not even funny.

from detox.

dharple avatar dharple commented on August 16, 2024

I like cxxtest: http://cxxtest.com/guide.html#gettingStarted

In fact, I like it so much, I'm inspired to do v2.0 in C++. We'll see how long that lasts. I ran through my old "test suite" and confirmed no regressions from v1.2.1.

from detox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.