Menu

Problem while using cppUnit

Help
2006-09-12
2013-04-22
  • Patrick Breucking

    Hi folks,

    I use cppUnit on VC++6. I try to build a wxWidgets Application, with Unit-Tests. I integrated cppUnit into VC. I Added an Testcase and in the Contructor of the Frame (Main) following lines.

        CPPUNIT_NS :: TestResult testresult;

        // Listener zum Sammeln der Testergebnisse registrieren
        CPPUNIT_NS :: TestResultCollector collectedresults;
        testresult.addListener (&collectedresults);

        // Test-Suite ueber die Registry im Test-Runner einfuegen
        CPPUNIT_NS :: TestRunner testrunner;
        testrunner.addTest (CPPUNIT_NS :: TestFactoryRegistry :: getRegistry ().makeTest ());
        testrunner.run (testresult);

    If I start build, the compiler prints following Output:
    Running Test
    Failed to load test plug-in:
    Symbol [cppunitTestPlugIn] not found in dynamic libary:.\Debug\nochmal.exe

    I searched, but I have no Idea whats bad.

    Thanks & greetings,

    Marquies

     
    • Patrick Breucking

      Sorry, this is beacause I started the Plugin after compiling. But I have still the Problem, that I can't get the testresults, because the Programm has noch COnsole Output. How can I start the Test GUI, like junit.swingui.TestRunner.run() ?? Why it can't be easy as Eclipse with JUnit? :)

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.