Two Laptop Bag*
The moose likes Testing and the fly likes cppunit testing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Reply locked New topic
Author

cppunit testing

Brian K Smith
Greenhorn

Joined: Nov 01, 2010
Posts: 12
I know it's not java, but I'm having some trouble getting my cppunit to run on Netbeans. Basically,

I have a problem with trying to run cppunit on netbeans. I've installed the latest cppunit, put it in my cygwin directory, run the ./configure, make, make install.

That all went. I was able to set up a simple unit test in the unit test wizard. My runner, code, and header files showed up.

1) I was able to set the include and lib paths so the macros were found. No big deal.

I also had to manually add a cygcppunit dll to a test folder where netbeans made an f1.exe file. Easy enough.

Now, when I try to run the test, the code compiles, and hangs here:

"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory `/cygdrive/c/Users/Brian/Documents/C++ Projects/Parsing'
"/usr/bin/make" -f nbproject/Makefile-Debug.mk build/Debug/Cygwin-Windows/tests/TestFiles/f2.exe
make[2]: Entering directory `/cygdrive/c/Users/Brian/Documents/C++ Projects/Parsing'
make[2]: `build/Debug/Cygwin-Windows/tests/TestFiles/f2.exe' is up to date.
make[2]: Leaving directory `/cygdrive/c/Users/Brian/Documents/C++ Projects/Parsing'
make[1]: Leaving directory `/cygdrive/c/Users/Brian/Documents/C++ Projects/Parsing'
"/usr/bin/make" -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-tests-conf
make[1]: Entering directory `/cygdrive/c/Users/Brian/Documents/C++ Projects/Parsing'
"/usr/bin/make" -f nbproject/Makefile-Debug.mk build/Debug/Cygwin-Windows/tests/TestFiles/f2.exe
make[2]: Entering directory `/cygdrive/c/Users/Brian/Documents/C++ Projects/Parsing'
make[2]: `build/Debug/Cygwin-Windows/tests/TestFiles/f2.exe' is up to date.
make[2]: Leaving directory `/cygdrive/c/Users/Brian/Documents/C++ Projects/Parsing'
make[1]: Leaving directory `/cygdrive/c/Users/Brian/Documents/C++ Projects/Parsing'
"/usr/bin/make" -f nbproject/Makefile-Debug.mk SUBPROJECTS= .test-conf
make[1]: Entering directory `/cygdrive/c/Users/Brian/Documents/C++ Projects/Parsing'


Any ideas?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61224
    
  66

Please do not post the same question more than once.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: cppunit testing