Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: defyax on January 23, 2015, 05:44:36 am

Title: How to Unit test in Code::Blocks?
Post by: defyax on January 23, 2015, 05:44:36 am
Hi,

I am Computer Science Engineering dept student.
This semester, I will study about software engineering,
So I want to prepare for this subject.

How to unit test in Code::blocks?
I found the article about unit test in "Code::Blocks » User forums » Announcements » Unit testing in Code::Blocks"
But it doesn't provide source code.

And I want to know that is code blocks program has own internal unit testing function. (not individual code)

Thank you.
Title: Re: How to Unit test in Code::Blocks?
Post by: oBFusCATed on January 23, 2015, 09:30:15 am
And I want to know that is code blocks program has own internal unit testing function. (not individual code)
If you ask if there is UI for unittesting, then I have to disappoint you - there is none.

The steps are:
1. make a project for unittesting
2. choose unittesting framework
3. write tests
4. add post build step that executes the final executable of the project
5. build...