[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdevelop/plugins/xtest/qtest/tests
From: Manuel Breugelmans <mbr.nxi () gmail ! com>
Date: 2008-08-21 14:13:14
Message-ID: 1219327994.275979.5697.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 850432 by mbreugel:
Implement identicalSuiteNames() command
M +28 -1 suitebuildertest.cpp
--- trunk/KDE/kdevelop/plugins/xtest/qtest/tests/suitebuildertest.cpp #850431:850432
@@ -138,7 +138,34 @@
{
// two equally named suites but in a different parent directory
// this should construct 2 different suites [but currently doesnt]
- QFAIL("Not Implemented, and not supported [yet] either");
+
+ m_exe->m_name = "footest";
+ m_exe->m_fetchFunctions = QStringList() << "foocommand()" << "foocommand2()";
+
+ ExecutableStub* barExe = new ExecutableStub;
+ barExe->m_name = "bartest";
+ barExe->m_fetchFunctions = QStringList() << "barcommand()";
+ m_builder->m_exes = QList<ExecutableStub*>() << m_exe << barExe; // inject
+ m_builder->setTestExecutables(QList<KUrl>() << KUrl("/path/to/foo/suite/footest.shell")
+ << KUrl("/path/to/bar/suite/bartest.shell"));
+
+ m_builder->start();
+ Veritas::Test* root = m_builder->root();
+ KVERIFY(root);
+ KOMPARE_(2, root->childCount());
+
+ QTestSuite* foosuite = fetchSuite(root, 0);
+ verifySuite(foosuite, "foo-suite", 1);
+ QTestCase* caze = foosuite->child(0);
+ verifyCaze(caze, "footest", 2);
+ verifyCommand(0, caze, "foocommand");
+ verifyCommand(1, caze, "foocommand2");
+
+ QTestSuite* barSuite = fetchSuite(root, 1);
+ verifySuite(barSuite, "bar-suite", 1);
+ QTestCase* barC = barSuite->child(0);
+ verifyCaze(barC, "bartest", 1);
+ verifyCommand(0, barC, "barcommand");
}
/////////////////////// helpers //////////////////////////////////////////////
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic