Port of schuchert.wikispaces.com


cpptraining.GettingCppUTestRunningUsingCdt.Juno

cpptraining.GettingCppUTestRunningUsingCdt.Juno

<–back

Overview

These instructions assume you have already worked through:this and then that.

With a working Eclipse Juno + CDT and MinGW and CppUTest built, you are ready to create your first project.

Steps

Basic Project Creation

What you select next depends on your environment

Windows
#include <CppUTest/CommandLineTestRunner.h>

int main(int argc, char *argv[]) {
	return CommandLineTestRunner::RunAllTests(argc, argv);
}

While your should be able to compile, you should make a few more changes.

If having the editor complete things like “” and {} bother you:

Build and Run

Hit ctrl-F11 to build and run your tests:

OK (0 tests, 0 ran, 0 checks, 0 ignored, 0 filtered out, 0 ms)

<–back


Comments

" Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.