Bug #119

Restructure Test.cpp file for Suite Module Test Project

Added by Lukas Felber almost 5 years ago. Updated almost 5 years ago.

Status:FeedbackStart date:08 Oct 2013
Priority:NormalDue date:
Assignee:Peter Sommerlad% Done:


Category:CUTE Plug-in
Target version:-



#include "cute.h" 
#include "ide_listener.h" 
#include "xml_listener.h" 
#include "cute_runner.h" 
#include "TheNewSuite.h" 

void runSuite(int argc, char const *argv[]){
    cute::xml_file_opener xmlfile(argc,argv);
    cute::xml_listener<cute::ide_listener<>  > lis(xmlfile.out);
    typedef cute::runner<cute::xml_listener<cute::ide_listener<> > > xml_runner;
    xml_runner runner = cute::makeRunner(lis,argc,argv);
    runner(make_suite_TheNewSuite(), "TheNewSuite");

int main(int argc, char const *argv[]){
  • extracting the runner would make it possible explain in the wiki/help how to easily add another suite to the runner.
    • once fixed: update/extend wiki page with this
  • the typedef should probably be moved to some cute-header. (otherwise auto could be used for runner type with c++11)
  • once fixed: update screenshot in wiki.


#1 Updated by Lukas Felber almost 5 years ago

  • Status changed from New to Feedback
  • Assignee set to Peter Sommerlad

peter what do you think about the suggested code above? would you agree to have the typedef moved to a cute header? to which one?

Also available in: Atom PDF