xunit2 Questions

3

Solved

I'm following this tutorial Integration Testing with Entity Framework Core and SQL Server My code looks like this Integration Test Class public class ControllerRequestsShould : IDisposable { pr...

4

Unfortunately I have a Specflow test passing locally, but it fails on the VSO Build vNext server, and I really need to see verbose information during the test run so I can figure out what is going ...
Complication asked 1/4, 2016 at 19:2

41

UPDATE: Adding a 2019; the discovery/runner integration mechanism is same as per 2017 & 2015, so the key things that can go wrong are the same. I've read Why is the xUnit runner not fi...

2

Solved

I have this example test using xUnit: [Fact] public void SomeTest() { Assert.All(itemList, async item=> { var i = await Something(item); Assert.Equal(item,i); }); } Is there a good s...
Ina asked 26/7, 2016 at 17:32

4

Solved

Context in XUnit github I found this: Add Assert.Equal(expected, actual, message) overload #350 (so a developer ask for a non existing overload see below) Quote from the answer: We are a belie...
Patrology asked 13/2, 2017 at 11:39

9

Solved

I'm using xUnit 2.0 collection fixtures to share a common database setup/teardown between a number of different test classes. The fixture also provides some helper properties, so I'm injecting it i...
Turgor asked 31/8, 2015 at 21:1

1

Solved

I am runnning all tests projects from solution level with a single command: dotnet test how can I make all tests projects(assemblies) run in parallel? In Visual Studio there is a simple button "Ru...
Winnifredwinning asked 28/12, 2018 at 8:13

2

Solved

I have a large test suite in a .NET Core project. I can use the Test Explorer window to select a few tests to run. I can also run the whole test suite on the command line with dotnet test. Is ther...
Parity asked 10/6, 2016 at 15:45

2

Solved

When I run my tests today with xUnit v2, I typically use a naming convention like: [Fact(DisplayName= "Method Will Do Something")] public void Method_Will_Do_Something() { } What extensibility p...
Pelt asked 27/5, 2015 at 19:28

1

Solved

I am using the latest version of XUnit and I followed these steps to get the Class Library (.NET Core) project started. All other libraries throughout my entire solution are only using 4.6.1 so I ...
Matthus asked 16/6, 2016 at 18:39

2

Solved

I am trying to do the following in an XUnit project to get the connectionstring to the database my tests should be using: public class TestFixture : IDisposable { public IConfigurationRoot Config...
Overflight asked 27/5, 2016 at 9:20

2

Solved

This is a very strange problem that I have spent the day trying to track down. I am not sure if this is a bug, but it would be great to get some perspective and thoughts on why this is happening. ...
Ortolan asked 13/3, 2016 at 22:14

5

Solved

I am really frustrated with this issue. I have already tried changing the version numbers but no tests are showing in the test explorer. In the test output window I can see this output Starting ...
Sleight asked 31/5, 2015 at 10:2
1

© 2022 - 2024 — McMap. All rights reserved.