News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Unit test integration into IDE

Started by ordak, October 17, 2017, 03:04:44 PM

Previous topic - Next topic

ordak

Hi,

At times for testing C code I use CUnit. Can this usage be integrated into Code::Blocks IDE ?

As an example visit this link:

https://netbeans.org/kb/docs/cnd/c-unit-test.html

Code::Blocks SVN
OS : Ubuntu LTS

ollydbg

If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

ordak

Quote from: ollydbg on October 17, 2017, 04:32:33 PM
hope this helps http://wiki.codeblocks.org/index.php/UnitTesting

I followed the given instructions in the provided link, some points:


  • When I do a Build and run I get the console output. However a Rebuild shows output on Build log as expected.
  • A colored output could be an improvement.

  • Clicking on failure/success may take one to relevant part of code.
Code::Blocks SVN
OS : Ubuntu LTS