ctk hackfest testing framework
Download
Skip this Video
Download Presentation
CTK Hackfest Testing framework

Loading in 2 Seconds...

play fullscreen
1 / 8

CTK Hackfest Testing framework - PowerPoint PPT Presentation


  • 180 Views
  • Uploaded on

CTK Hackfest Testing framework. November 2011 Inria – Sofia Antipolis. MITK. Custom testing framework

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' CTK Hackfest Testing framework' - chika


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
ctk hackfest testing framework

CTK HackfestTesting framework

November 2011

Inria – Sofia Antipolis

slide2
MITK

Custom testing framework

intmitkMyTest(int , char* []) { MITK_TEST_BEGIN(“MyTest");intvalue = 10; MITK_TEST_CONDITION_REQUIRED( value < 100, “My Test Message"); MITK_INFO << value; MITK_TEST_END();}

gimias
GIMIAS
  • TestSuite
    • CppUnit
      • (JUnit for C++)
      • optionally using old QtTestRunner
    • CxxTest
      • JUnit and CppUnit like
      • lightweight
qt testing
Qt Testing

#include <QtTest/QtTest>class TestQString: public QObject{ Q_OBJECTprivate slots: void toUpper() {QStringstr = "Hello"; QCOMPARE(str.toUpper(),QString("HELLO")); }};

QTEST_MAIN(TestQString)#include "testqstring.moc"

slide5
MAF3

Wrapper around QTest

google tests
Google tests

// Tests factorial of negative numbers.TEST(FactorialTest, Negative) {// This test is named "Negative", // and belongs to the "FactorialTest“ // test case.EXPECT_EQ(1, Factorial(-5));EXPECT_EQ(1, Factorial(-1)); EXPECT_TRUE(Factorial(-10) > 0);}

RUN_ALL_TESTS() in main().

suggestion for ctk
Suggestion for CTK
  • Use QtTest?
    • Offers the same as in CxxTests, Google Tests
  • Eventually add macros on top to register tests
    • What’s missing ?
    • Mix of MITK / MAF ?
  • How about Python ?
  • How about GUI testing ?
slide8

QtTest: http://doc.qt.nokia.com/stable/qtestlib-tutorial1.html

ad