Automatically Discovered Tests Misses .NET Core Testing Assembly

Mike-E's Avatar

Mike-E

08 Nov, 2019 08:49 PM

I am attempting to configure our CD/CI, and one of the settings I see is the Automatically Discovered feature of the Test tab in Settings.

This appears to *mostly* work. In our solution we have one test project that results in 3 platform assemblies. These get built according to the log:

```
[00:00:26] Microsoft (R) Build Engine version 16.1.76+g14b0a930a7 for .NET Core
[00:00:26] Copyright (C) Microsoft Corporation. All rights reserved.
[00:00:26]
[00:00:27] Restore completed in 39.97 ms for C:\projects\extendedxmlserializer\test\ExtendedXmlSerializer.Tests\ExtendedXmlSerializer.Tests.csproj.
[00:00:27] Restore completed in 38.49 ms for C:\projects\extendedxmlserializer\src\ExtendedXmlSerializer\ExtendedXmlSerializer.csproj.
[00:00:28] ExtendedXmlSerializer -> C:\projects\extendedxmlserializer\src\ExtendedXmlSerializer\bin\Release\net45\ExtendedXmlSerializer.dll
[00:00:28] ExtendedXmlSerializer -> C:\projects\extendedxmlserializer\src\ExtendedXmlSerializer\bin\Release\netstandard2.0\ExtendedXmlSerializer.dll
[00:00:31] ExtendedXmlSerializer.Tests -> C:\projects\extendedxmlserializer\test\ExtendedXmlSerializer.Tests\bin\Release\net45\ExtendedXmlSerializer.Tests.dll
[00:00:31] ExtendedXmlSerializer.Tests -> C:\projects\extendedxmlserializer\test\ExtendedXmlSerializer.Tests\bin\Release\netcoreapp2.1\ExtendedXmlSerializer.Tests.dll
[00:00:33] ExtendedXmlSerializer.Tests -> C:\projects\extendedxmlserializer\test\ExtendedXmlSerializer.Tests\bin\Release\net471\ExtendedXmlSerializer.Tests.dll
[00:00:33]
[00:00:33] Build succeeded.
[00:00:33] 0 Warning(s)
[00:00:33] 0 Error(s)
[00:00:33]
[00:00:33] Time Elapsed 00:00:06.47
```

Unfortunately it only appears the .NET Framework assemblies get tested, leaving the .NET Core by its lonesome:

```
[00:00:39] Discovering tests...OK
[00:00:39] %xunit20%\xunit.console.x86 "C:\projects\extendedxmlserializer\test\ExtendedXmlSerializer.Tests\bin\Release\net45\ExtendedXmlSerializer.Tests.dll" -appveyor
[00:00:39] xUnit.net Console Runner (32-bit .NET 4.0.30319.42000)
[00:00:40] Discovering: ExtendedXmlSerializer.Tests
[00:00:40] Discovered: ExtendedXmlSerializer.Tests
[00:00:40] Starting: ExtendedXmlSerializer.Tests
[00:00:52] Finished: ExtendedXmlSerializer.Tests
[00:00:52] === TEST EXECUTION SUMMARY ===
[00:00:52] ExtendedXmlSerializer.Tests Total: 354, Errors: 0, Failed: 0, Skipped: 0, Time: 11.129s
[00:00:52] %xunit20%\xunit.console.x86 "C:\projects\extendedxmlserializer\test\ExtendedXmlSerializer.Tests\bin\Release\net471\ExtendedXmlSerializer.Tests.dll" -appveyor
[00:00:52] xUnit.net Console Runner (32-bit .NET 4.0.30319.42000)
[00:00:53] Discovering: ExtendedXmlSerializer.Tests
[00:00:54] Discovered: ExtendedXmlSerializer.Tests
[00:00:54] Starting: ExtendedXmlSerializer.Tests
[00:01:20] Finished: ExtendedXmlSerializer.Tests
[00:01:20] === TEST EXECUTION SUMMARY ===
[00:01:20] ExtendedXmlSerializer.Tests Total: 355, Errors: 0, Failed: 0, Skipped: 0, Time: 11.867s
```
Any guidance on how to get .NET Core tests detected successfully would be greatly appreciated.

  1. 1 Posted by Mike-E on 09 Nov, 2019 09:00 AM

    Mike-E's Avatar
  2. 2 Posted by Mike-E on 15 Nov, 2019 03:34 PM

    Mike-E's Avatar

    This is still an issue for us. Is this a known bug?

  3. Support Staff 3 Posted by Feodor Fitsner on 15 Nov, 2019 04:04 PM

    Feodor Fitsner's Avatar

    Hi Mike,

    That's right, currently .NET Core test assemblies are not automatically discovered - you have to provide your own command to run tests with them.

  4. 4 Posted by Mike-E on 15 Nov, 2019 04:36 PM

    Mike-E's Avatar

    Ok great, thanks for letting me know, @Feodor! Great product/service otherwise. 

  5. Mike-E closed this discussion on 15 Nov, 2019 04:36 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

07 Jul, 2020 06:21 PM
07 Jul, 2020 03:15 PM
05 Jul, 2020 02:33 AM
03 Jul, 2020 07:29 PM
03 Jul, 2020 03:53 AM

 

02 Jul, 2020 09:09 PM
02 Jul, 2020 03:24 PM
01 Jul, 2020 01:12 PM
30 Jun, 2020 04:26 PM
25 Jun, 2020 05:54 PM
24 Jun, 2020 08:11 AM