MCPcopy Create free account
hub / github.com/KDE/kdevelop / runAllTests

Method runAllTests

plugins/testview/testviewplugin.cpp:88–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void TestViewPlugin::runAllTests()
89{
90 ITestController* tc = core()->testController();
91 const auto projects = core()->projectController()->projects();
92 for (IProject* project : projects) {
93 QList<KJob*> jobs;
94 const auto suites = tc->testSuitesForProject(project);
95 for (ITestSuite* suite : suites) {
96 if (KJob* job = suite->launchAllCases(ITestSuite::Silent))
97 {
98 jobs << job;
99 }
100 }
101 if (!jobs.isEmpty())
102 {
103 auto* compositeJob = new KDevelop::ExecuteCompositeJob(this, jobs);
104 compositeJob->setObjectName(i18np("Run 1 test in %2", "Run %1 tests in %2",
105 jobs.size(), project->name()));
106 compositeJob->setProperty("test_job", true);
107 core()->runController()->registerJob(compositeJob);
108 }
109 }
110}
111
112void TestViewPlugin::stopRunningTests()
113{

Callers

nothing calls this directly

Calls 11

testControllerMethod · 0.80
projectsMethod · 0.80
projectControllerMethod · 0.80
testSuitesForProjectMethod · 0.80
setPropertyMethod · 0.80
registerJobMethod · 0.80
runControllerMethod · 0.80
launchAllCasesMethod · 0.45
isEmptyMethod · 0.45
sizeMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected