Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
25539830
Commit
25539830
authored
7 years ago
by
Pospelov, Gennady
Browse files
Options
Downloads
Patches
Plain Diff
GUI unit tests sorted in alphabetical order.
parent
5ec35339
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Tests/UnitTests/GUI/CMakeLists.txt
+5
-5
5 additions, 5 deletions
Tests/UnitTests/GUI/CMakeLists.txt
Tests/UnitTests/GUI/TestGUI.cpp
+52
-52
52 additions, 52 deletions
Tests/UnitTests/GUI/TestGUI.cpp
with
57 additions
and
57 deletions
Tests/UnitTests/GUI/CMakeLists.txt
+
5
−
5
View file @
25539830
# 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
(
Test
GUI
${
source_files
}
${
include_files
}
)
add_executable
(
${
Test
Name
}
${
source_files
}
${
include_files
}
)
target_link_libraries
(
Test
GUI
${
BornAgainGUI_LIBRARY
}
)
target_link_libraries
(
${
Test
Name
}
${
BornAgainGUI_LIBRARY
}
)
qt5_use_modules
(
Test
GUI
Widgets Core Gui Designer PrintSupport Network Test
)
qt5_use_modules
(
${
Test
Name
}
Widgets Core Gui Designer PrintSupport Network Test
)
# add execution of TestCore just after compilation
# add execution of TestCore just after compilation
add_custom_target
(
Test
GUI0
ALL DEPENDS TestGUI COMMAND Test
GUI
)
add_custom_target
(
${
Test
Name
}
Target
ALL DEPENDS TestGUI COMMAND
${
Test
Name
}
)
This diff is collapsed.
Click to expand it.
Tests/UnitTests/GUI/TestGUI.cpp
+
52
−
52
View file @
25539830
#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
"Test
DetectorItems
.h"
#include
"Test
ParticleCoreShell
.h"
#include
"Test
LinkInstrument
.h"
#include
"Test
ParticleDistributionItem
.h"
#include
"Test
UpdateTimer
.h"
#include
"Test
ParticleItem
.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
<
Test
ComboProperty
>
();
tests
.
add
<
Test
ModelUtils
>
();
tests
.
add
<
Test
Translations
>
();
tests
.
add
<
Test
OutputDataIOService
>
();
tests
.
add
<
Test
Group
Item
>
();
tests
.
add
<
Test
ParaCrystal
Item
s
>
();
tests
.
add
<
TestPar
ticleDistribution
Item
>
();
tests
.
add
<
TestPar
ameterized
Item
>
();
tests
.
add
<
TestParameterTreeUtils
>
();
tests
.
add
<
TestParameterTreeUtils
>
();
tests
.
add
<
Test
DetectorItems
>
();
tests
.
add
<
Test
ParticleCoreShell
>
();
tests
.
add
<
Test
LinkInstrument
>
();
tests
.
add
<
Test
ParticleDistributionItem
>
();
tests
.
add
<
Test
UpdateTimer
>
();
tests
.
add
<
Test
ParticleItem
>
();
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
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment