-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
Dotnet Drivers
-
Not Needed
-
None
-
None
-
None
-
None
-
None
-
None
My development style relies on have a test suite that works when run locally. My experience with agents is that they also expect to be able to run tests locally. Unfortunately, local running does not work well.
When I started, many tests were red by default locally. I believe this is still happening, but things are now even worse because running dotnet test on the command line or using Rider doesn't really work at all.
This issue is for me to associate with PRs that improve the locally testing experience.
First issues:
Currently, running `dotnet test` in the MongoDB.Driver.Tests project results in the following exception:
Unhandled exception. System.InvalidOperationException: Sequence contains more than one matching element at System.Linq.ThrowHelper.ThrowMoreThanOneMatchException() at System.Linq.Enumerable.TryGetSingle[TSource](IEnumerable`1 source, Func`2 predicate, Boolean& found) at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source, Func`2 predicate) at MongoDB.TestHelpers.XunitExtensions.TimeoutEnforcing.TimeoutEnforcingXunitTestAssemblyRunner..ctor(ITestAssembly testAssembly, IEnumerable`1 testCases, IMessageSink diagnosticMessageSink, IMessageSink executionMessageSink, ITestFrameworkExecutionOptions executionOptions) in /Users/arthur.vickers/code/mongo-csharp-driver/tests/MongoDB.TestHelpers/XunitExtensions/TimeoutEnforcing/TimeoutEnforcingXunitTestAssemblyRunner.cs:line 44
In Rider, this exception results in "inconclusive" for all tests.