mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-16 11:40:11 +02:00
WIP.
This commit is contained in:
parent
795423beea
commit
95a2d586c6
1 changed files with 5 additions and 6 deletions
|
@ -25,8 +25,7 @@ void TestSuiteCreator::createTestSuite(const QString& testDirectory) {
|
|||
document.appendChild(root);
|
||||
|
||||
// id (empty seems to be OK)
|
||||
QDomElement idElement = document.createElement("id");
|
||||
root.appendChild(idElement);
|
||||
root.appendChild(document.createElement("id"));
|
||||
|
||||
// name - our tests are in "Rendering"
|
||||
QDomElement nameElement = document.createElement("name");
|
||||
|
@ -45,9 +44,7 @@ void TestSuiteCreator::createTestSuite(const QString& testDirectory) {
|
|||
topLevelSection.appendChild(suiteName);
|
||||
|
||||
QDomElement secondLevelSections = document.createElement("sections");
|
||||
QDomElement tests = processDirectory(testDirectory, secondLevelSections);
|
||||
topLevelSection.appendChild(tests);
|
||||
|
||||
topLevelSection.appendChild(processDirectory(testDirectory, secondLevelSections));
|
||||
|
||||
topLevelSection.appendChild(secondLevelSections);
|
||||
topLevelSections.appendChild(topLevelSection);
|
||||
|
@ -79,7 +76,6 @@ QDomElement TestSuiteCreator::processDirectory(const QString& directory, const Q
|
|||
QString directory = it.next();
|
||||
|
||||
// Only process directories
|
||||
QDir dir;
|
||||
if (Test::isAValidDirectory(directory)) {
|
||||
// Ignore the utils directory
|
||||
if (directory.right(5) == "utils") {
|
||||
|
@ -97,6 +93,9 @@ QDomElement TestSuiteCreator::processDirectory(const QString& directory, const Q
|
|||
sectionElementName.appendChild(sectionElementNameText);
|
||||
sectionElement.appendChild(sectionElementName);
|
||||
|
||||
QDomElement testsElement = document.createElement("sections");
|
||||
sectionElement.appendChild(processDirectory(directory, testsElement));
|
||||
|
||||
result.appendChild(sectionElement);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue