diff options
author | Mike Voorhees <mrvoorhe@users.noreply.github.com> | 2021-08-30 23:23:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-30 23:23:37 +0300 |
commit | 0f0d5c6af4100327906b14c7489848e2398b227a (patch) | |
tree | 5a80ef279e591cd897a5b5981a342f7a255f0181 /test/Mono.Linker.Tests | |
parent | c5ceda0cfa0f053c24485a0b95d44c9de6af31a7 (diff) |
Don't drop suite name from test name. (#2241)
This confuses IDE tests runners in different ways.
* In Rider, if two folders contain a test with the same name, only 1 will ever run. Rider silently drops the other and never runs it.
* In Visual Studio 2022 Preview the tests a grouped oddly in the UI. For example, tests under `Attributes.Csc.*` will appear as having their own top level grouping rather than nested under `Attributes`. I did not test if VS suffered from the above. It may also.
Diffstat (limited to 'test/Mono.Linker.Tests')
-rw-r--r-- | test/Mono.Linker.Tests/TestCases/TestDatabase.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Mono.Linker.Tests/TestCases/TestDatabase.cs b/test/Mono.Linker.Tests/TestCases/TestDatabase.cs index 8179e1d2c..335a338e1 100644 --- a/test/Mono.Linker.Tests/TestCases/TestDatabase.cs +++ b/test/Mono.Linker.Tests/TestCases/TestDatabase.cs @@ -254,7 +254,7 @@ namespace Mono.Linker.Tests.TestCases { return AllCases () .Where (c => c.TestSuiteDirectory.FileName == suiteName) - .Select (c => CreateNUnitTestCase (c, c.DisplayName.Substring (suiteName.Length + 1))) + .Select (c => CreateNUnitTestCase (c, c.DisplayName)) .OrderBy (c => c.TestName); } |