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

How to Unit test in Code::Blocks?

Started by defyax, January 23, 2015, 05:44:36 AM

Previous topic - Next topic

defyax

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.

oBFusCATed

Quote from: defyax on January 23, 2015, 05:44:36 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...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]