Author Topic: How to Unit test in Code::Blocks?  (Read 4162 times)

Offline defyax

  • Single posting newcomer
  • *
  • Posts: 3
  • I'm Computer Science & Engineering dept Student :)
How to Unit test in Code::Blocks?
« 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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: How to Unit test in Code::Blocks?
« Reply #1 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...
(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!]