Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

Commit ab2aaa5

Browse files
committed
[TouchRunner] Always show 'Run all'. (#70)
For nested tests, where there's a single test for each nesting level, this avoids having to drill down all the way to run the actual test.
1 parent af58317 commit ab2aaa5

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

NUnitLite/TouchRunner/TouchRunner.cs

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -724,18 +724,16 @@ TestSuiteElement Setup (TestSuite suite)
724724

725725
root.Add (section);
726726

727-
if (section.Count > 1) {
728-
Section options = new Section () {
729-
new StringElement ("Run all", delegate () {
730-
if (OpenWriter (suite.Name)) {
731-
Run (suite);
732-
CloseWriter ();
733-
suites_dvc [suite].Filter ();
734-
}
735-
})
736-
};
737-
root.Add (options);
738-
}
727+
Section options = new Section () {
728+
new StringElement ("Run all", delegate () {
729+
if (OpenWriter (suite.Name)) {
730+
Run (suite);
731+
CloseWriter ();
732+
suites_dvc [suite].Filter ();
733+
}
734+
})
735+
};
736+
root.Add (options);
739737

740738
suites_dvc.Add (suite, new TouchViewController (root));
741739
return tse;

0 commit comments

Comments
 (0)