First cut at using CppUnit… Testing Bye class

Dear all

Here is my first attempt… The source change is just the main function in main.cpp is not compiled… Thru a -DUNIT_TEST define.

I am deliberately failing a test so you all can see how things look usually… ( like the tests are decoupled from each other etc… )

~/calitko-0.5.4> ./calitko
.F…

!!!FAILURES!!!
Test Results:
Run:  4   Failures: 1   Errors: 0

1) test: TestBye::testCtor (F) line: 30 TestBye.cpp
assertion failed
- Expression: QByteArray() != m_p->message()

~/calitko-0.5.4>
Here are the files… I have cobbled together the makefile but hope to polish it soon ;-)

– cheers atul

Attached Files:

Makefile 87K

Would you like to post a relpy?


This post starts a thread.
Follow-ups:
Re: First cut at using CppUnit… Testing Bye class
Thanks for the files, Atul! I took a quick look into what you’ve done and it looks quite neat! I also read the CppUnit Cookbook which explains the basics (more...)