зеркало из https://github.com/mono/mono.git
[test-runner] Don't output test result xml when no tests are run
A result xml that contains 0 tests confuses some tools.
This commit is contained in:
Родитель
a5a496695a
Коммит
938415c6d3
|
@ -208,6 +208,11 @@ public class TestRunner
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!tests.Any ()) {
|
||||||
|
Console.WriteLine ("No tests selected, exiting.");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* If tests are repeated, we don't want the same test to run consecutively, so we need to randomise their order.
|
/* If tests are repeated, we don't want the same test to run consecutively, so we need to randomise their order.
|
||||||
* But to ease reproduction of certain order-based bugs (if and only if test A and B execute at the same time),
|
* But to ease reproduction of certain order-based bugs (if and only if test A and B execute at the same time),
|
||||||
* we want to use a constant seed so the tests always run in the same order. */
|
* we want to use a constant seed so the tests always run in the same order. */
|
||||||
|
|
Загрузка…
Ссылка в новой задаче