I am trying to use unit testing framework for C called Check.
I installed the package as instructed on the file INSTALL in the package:
After doing that I failed to run my own test so finally I decided to use the package example in /usr/local/share/doc/check/example.
Did the following commands:
$ autoreconf --install
$ ./configure
$ make
$ make check
And still the same problem :
/usr/local/share/doc/check/example/tests/.libs/lt-check_money: error while loading shared libraries: libcheck.so.0: cannot open shared object file: No such file or directory
FAIL: check_money
Tried to add the directory to LDFLAGS in the make file but that did not help, also tried to do what Rick Hightower did here
(...deleting the *.so files (and their links)) by I don't know how to remove the links
The most scalable way to write unit tests in C is using a unit testing framework, such as: CppUTest. Unity. Google Test.
A Unit Testing Framework for CCUnit is a lightweight system for writing, administering, and running unit tests in C. It provides C programmers a basic testing functionality with a flexible variety of user interfaces.
JUnit is an open source framework you can use to write and run tests. It aims to help develop bug-free and reliable code written in Java. JUnit provides test runners that run tests and assertions to test the expected results.
The three major C# Unit testing frameworks are MSTest, NUnitNUnitNUnit is an open-source unit testing framework for the . NET Framework and Mono. It serves the same purpose as JUnit does in the Java world, and is one of many programs in the xUnit family.https://en.wikipedia.org › wiki › NUnitNUnit - Wikipedia, and xUnit.Net. You should select the most appropriate test framework that suits your project requirements.
Try running ldconfig (ie. sudo ldconfig) to rebuild the runtime linker cache.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With