BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
TestAll.cpp
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // qt-mvvm: Model-view-view-model framework for large GUI applications
4 //
5 //! @file mvvm/tests/testview/TestAll.cpp
6 //! @brief Implements class CLASS?
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2020
11 //! @authors Gennady Pospelov et al, Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #include "customplot_test_utils.h"
16 #include "google_test.h"
17 #include "qcustomplot.h"
18 #include <QApplication>
19 #include <QStandardItem>
20 #include <gmock/gmock.h>
21 
22 int main(int argc, char** argv)
23 {
24  ::testing::InitGoogleTest(&argc, argv);
25  ::testing::InitGoogleMock(&argc, argv);
26 
28  qRegisterMetaType<QStandardItem*>("QStandardItem*");
29  qRegisterMetaType<QCPRange>("QCPRange");
30 
31  // FIXME find the way not to run app for all tests which doesn't use QWidget.
32  // The problem here is because of ctest autodiscovery which runs given main at every test.
33  QApplication app(argc, argv);
34  Q_UNUSED(app)
35 
36  return RUN_ALL_TESTS();
37 }
static void registerComparators()
Definition: comparators.cpp:26
Defines class CLASS?
Defines class CLASS?
int main(int argc, char **argv)
Definition: TestAll.cpp:20