Test discovery Igloo

75 views
Skip to first unread message

Mukiza Andrew

unread,
Mar 2, 2014, 1:07:31 PM3/2/14
to igloo-...@googlegroups.com
Hello awesome people!!

Two days ago, I found this awesome BDD style test framework for C++, but I have failed to have it discuss my tests. Could somebody guide me on how to set it up 

My Test Runner looks like this:

#include <igloo/igloo.h>
using namespace igloo;
int main(int argc, char const *argv[]){
    return TestRunner::RunAllTests(argc, argv);
}

and I am compiling it using a basic makefile whose contents are as below

all:
g++ testRunner.cpp -o tests

This is the output I get when I ran the executable 



Any ideas on how to get around this setup please??? :-) 

@Joakim Karlsson

I would much appreciate if I could get similar setup to what you you used for the game of life Kata. It was great using the rake command in vim and having tests run without stopping your work flow.

Joakim Karlsson

unread,
Mar 2, 2014, 1:33:26 PM3/2/14
to igloo-...@googlegroups.com
Hi,

Do you have your actual tests in other cpp-files? If so, you need to bring those files in to your build.

g++ testRunner.cpp filewithtests.cpp anotherfilewithtests.cpp -o tests

The rake file used in the screen cast is still available [1], and it works ok for very small projects. But for more complex applications, I'd suggest you take a look at cmake (http://www.cmake.org/) and have that create a makefile for you. It's a bit cumbersome, but in the end it'll give you an even better flow than the rake setup.

/Joakim

Mukiza Andrew

unread,
Mar 21, 2014, 2:04:53 AM3/21/14
to igloo-...@googlegroups.com
Hi Joakim!! 

Thanks a lot, Thats exactly what I was forgetting, that i had to compile all the files. 
Its now working like a charm and walking in your foot steps through conway's game of life kata just to master igloo
Reply all
Reply to author
Forward
0 new messages