Skip to content

Commit

Permalink
[TouchRunner] Always show 'Run all'. (#70)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rolfbjarne authored Jul 14, 2020
1 parent 2c2a55e commit 8bea179
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions NUnitLite/TouchRunner/TouchRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -724,18 +724,16 @@ TestSuiteElement Setup (TestSuite suite)

root.Add (section);

if (section.Count > 1) {
Section options = new Section () {
new StringElement ("Run all", delegate () {
if (OpenWriter (suite.Name)) {
Run (suite);
CloseWriter ();
suites_dvc [suite].Filter ();
}
})
};
root.Add (options);
}
Section options = new Section () {
new StringElement ("Run all", delegate () {
if (OpenWriter (suite.Name)) {
Run (suite);
CloseWriter ();
suites_dvc [suite].Filter ();
}
})
};
root.Add (options);

suites_dvc.Add (suite, new TouchViewController (root));
return tse;
Expand Down

0 comments on commit 8bea179

Please sign in to comment.