Skip to content
Snippets Groups Projects
Commit 25539830 authored by Pospelov, Gennady's avatar Pospelov, Gennady
Browse files

GUI unit tests sorted in alphabetical order.

parent 5ec35339
No related branches found
No related tags found
No related merge requests found
# Here we use QtTest, not gtest ... set(TestName TestGUI)
if(POLICY CMP0020) if(POLICY CMP0020)
cmake_policy(SET CMP0020 NEW) cmake_policy(SET CMP0020 NEW)
...@@ -23,11 +23,11 @@ include_directories( ...@@ -23,11 +23,11 @@ include_directories(
set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOMOC ON)
add_executable(TestGUI ${source_files} ${include_files}) add_executable(${TestName} ${source_files} ${include_files})
target_link_libraries(TestGUI ${BornAgainGUI_LIBRARY}) target_link_libraries(${TestName} ${BornAgainGUI_LIBRARY})
qt5_use_modules(TestGUI Widgets Core Gui Designer PrintSupport Network Test) qt5_use_modules(${TestName} Widgets Core Gui Designer PrintSupport Network Test)
# add execution of TestCore just after compilation # add execution of TestCore just after compilation
add_custom_target(TestGUI0 ALL DEPENDS TestGUI COMMAND TestGUI) add_custom_target(${TestName}Target ALL DEPENDS TestGUI COMMAND ${TestName})
#include <QtTest> #include <QtTest>
#include <QString> #include <QString>
#include <QCoreApplication> #include <QCoreApplication>
#include "TestMapperCases.h" #include "TestComboProperty.h"
#include "TestComponentProxyModel.h"
#include "TestComponentUtils.h"
#include "TestDetectorItems.h"
#include "TestExternalProperty.h"
#include "TestFitParameterModel.h"
#include "TestFormFactorItems.h" #include "TestFormFactorItems.h"
#include "TestFTDistributionItems.h" #include "TestFTDistributionItems.h"
#include "TestParameterizedItem.h" #include "TestGroupItem.h"
#include "TestParticleItem.h"
#include "TestLayerRoughnessItems.h"
#include "TestParaCrystalItems.h"
#include "TestSessionModel.h"
#include "TestSessionItem.h"
#include "TestGUICoreObjectCorrespondence.h" #include "TestGUICoreObjectCorrespondence.h"
#include "TestMapperForItem.h"
#include "TestParticleDistributionItem.h"
#include "TestGUIHelpers.h" #include "TestGUIHelpers.h"
#include "TestFitParameterModel.h" #include "TestIntensityDataItem.h"
#include "TestLayerItems.h"
#include "TestLayerRoughnessItems.h"
#include "TestLinkInstrument.h"
#include "TestMapperCases.h"
#include "TestMapperForItem.h"
#include "TestMaterialModel.h" #include "TestMaterialModel.h"
#include "TestComboProperty.h" #include "TestMaterialPropertyController.h"
#include "TestTranslations.h" #include "TestModelUtils.h"
#include "TestGroupItem.h" #include "TestOutputDataIOService.h"
#include "TestParaCrystalItems.h"
#include "TestParameterizedItem.h"
#include "TestParameterTreeUtils.h" #include "TestParameterTreeUtils.h"
#include "TestDetectorItems.h" #include "TestParticleCoreShell.h"
#include "TestLinkInstrument.h" #include "TestParticleDistributionItem.h"
#include "TestUpdateTimer.h" #include "TestParticleItem.h"
#include "TestProjectDocument.h" #include "TestProjectDocument.h"
#include "TestSaveService.h"
#include "TestOutputDataIOService.h"
#include "TestIntensityDataItem.h"
#include "TestProjectUtils.h" #include "TestProjectUtils.h"
#include "TestParticleCoreShell.h"
#include "TestPropertyRepeater.h" #include "TestPropertyRepeater.h"
#include "TestSessionItemController.h"
#include "TestModelUtils.h"
#include "TestComponentProxyModel.h"
#include "TestProxyModelStrategy.h" #include "TestProxyModelStrategy.h"
#include "TestSaveService.h"
#include "TestSessionItemController.h"
#include "TestSessionItem.h"
#include "TestSessionItemUtils.h" #include "TestSessionItemUtils.h"
#include "TestComponentUtils.h" #include "TestSessionModel.h"
#include "TestLayerItems.h"
#include "TestMaterialPropertyController.h"
#include "TestExternalProperty.h"
#include "TestSessionXML.h" #include "TestSessionXML.h"
#include "TestTranslations.h"
#include "TestUpdateTimer.h"
#include <memory> #include <memory>
class GUITestFactory { class GUITestFactory {
...@@ -75,45 +75,45 @@ int main(int argc, char** argv) { ...@@ -75,45 +75,45 @@ int main(int argc, char** argv) {
GUITestFactory tests; GUITestFactory tests;
tests.add<TestComboProperty>();
tests.add<TestComponentProxyModel>();
tests.add<TestComponentUtils>();
tests.add<TestDetectorItems>();
tests.add<TestExternalProperty>();
tests.add<TestFitParameterModel>();
tests.add<TestFormFactorItems>(); tests.add<TestFormFactorItems>();
tests.add<TestFTDistributionItems>(); tests.add<TestFTDistributionItems>();
tests.add<TestParameterizedItem>(); tests.add<TestGroupItem>();
tests.add<TestParticleItem>();
tests.add<TestLayerRoughnessItems>();
tests.add<TestParaCrystalItems>();
tests.add<TestSessionModel>();
tests.add<TestGUICoreObjectCorrespondence>(); tests.add<TestGUICoreObjectCorrespondence>();
tests.add<TestSessionItem>(); tests.add<TestGUIHelpers>();
tests.add<TestIntensityDataItem>();
tests.add<TestLayerItems>();
tests.add<TestLayerRoughnessItems>();
tests.add<TestLinkInstrument>();
tests.add<TestMapperCases>(); tests.add<TestMapperCases>();
tests.add<TestMapperForItem>(); tests.add<TestMapperForItem>();
tests.add<TestGUIHelpers>();
tests.add<TestFitParameterModel>();
tests.add<TestMaterialModel>(); tests.add<TestMaterialModel>();
tests.add<TestLayerItems>();
tests.add<TestMaterialPropertyController>(); tests.add<TestMaterialPropertyController>();
tests.add<TestComboProperty>(); tests.add<TestModelUtils>();
tests.add<TestTranslations>(); tests.add<TestOutputDataIOService>();
tests.add<TestGroupItem>(); tests.add<TestParaCrystalItems>();
tests.add<TestParticleDistributionItem>(); tests.add<TestParameterizedItem>();
tests.add<TestParameterTreeUtils>(); tests.add<TestParameterTreeUtils>();
tests.add<TestDetectorItems>(); tests.add<TestParticleCoreShell>();
tests.add<TestLinkInstrument>(); tests.add<TestParticleDistributionItem>();
tests.add<TestUpdateTimer>(); tests.add<TestParticleItem>();
tests.add<TestProjectDocument>(); tests.add<TestProjectDocument>();
tests.add<TestSaveService>();
tests.add<TestOutputDataIOService>();
tests.add<TestIntensityDataItem>();
tests.add<TestProjectUtils>(); tests.add<TestProjectUtils>();
tests.add<TestParticleCoreShell>();
tests.add<TestPropertyRepeater>(); tests.add<TestPropertyRepeater>();
tests.add<TestSessionItemController>();
tests.add<TestModelUtils>();
tests.add<TestComponentProxyModel>();
tests.add<TestProxyModelStrategy>(); tests.add<TestProxyModelStrategy>();
tests.add<TestSaveService>();
tests.add<TestSessionItem>();
tests.add<TestSessionItemController>();
tests.add<TestSessionItemUtils>(); tests.add<TestSessionItemUtils>();
tests.add<TestComponentUtils>(); tests.add<TestSessionModel>();
tests.add<TestExternalProperty>();
tests.add<TestSessionXML>(); tests.add<TestSessionXML>();
tests.add<TestTranslations>();
tests.add<TestUpdateTimer>();
return tests.runAll(argc, argv); return tests.runAll(argc, argv);
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment