Comments (5)
Hi @bokece,
Could you please share how you normally run the tool?
from dotnet-test-rerun.
Hello @ricardofslp and thank you for your prompt response.
Command: test-rerun $pwd\bin\Debug\net7.0\TempXunitTest.dll --rerunMaxAttempts 2
Only test class:
public class UnitTest1
{
[Fact]
public void Test1()
{
var result = RandomBoolProbability(100);
Assert.True(result);
}
[Theory]
[InlineData(1, 2, 3)]
[InlineData(-4, -6, -10)]
[InlineData(-2, 2, 0)]
[InlineData(int.MinValue, -1, int.MaxValue)]
public void Test2(int value1, int value2, int expected)
{
Console.WriteLine("Test: " + value1);
var _ = value1 + value2;
var __ = expected;
var result = RandomBoolProbability(100);
Assert.True(result);
}
[Theory, MemberData(nameof(TestData)) ]
public void Test3(TestDataNonSerialized td)
{
var result = RandomBoolProbability(70);
Assert.True(result);
}
}
Actual behaviour:
When a test case of a theory (e.g. Test2, Test3) fails
Then all theory's test cases are executed again on the second iteration
Expected behaviour:
When a test case of a theory (e.g. Test2, Test3) fails
Then only the failed test case is executed again on the second iteration
from dotnet-test-rerun.
Hi @bokece,
Could you please test with this version: https://www.nuget.org/packages/dotnet-test-rerun/1.9.0-alpha.1 to see if it solves the issue you were facing ?
Thanks.
from dotnet-test-rerun.
Hi @bokece ,
Did it work?
from dotnet-test-rerun.
Officially solved in version: https://www.nuget.org/packages/dotnet-test-rerun/1.9.0
from dotnet-test-rerun.
Related Issues (20)
- Options [-e|--environment <NAME="VALUE">] is not supported HOT 3
- Running on ADO issue HOT 6
- Provide the ability to run all test projects using a glob pattern HOT 1
- Feature: on re-run, search only the test projects/assemblies that contain the failed tests HOT 1
- Relative path to test assembly not found (on osx, linux specifically?) HOT 7
- enable the ability to run at root level, for whole solution HOT 5
- Tests aren't re-run if verbosity is set to normal HOT 5
- Missing option to override TestRunParameters HOT 10
- Cant add Nuget package HOT 2
- Exit code "1" after sucessfull rerun HOT 2
- Issues running in azure pipeline HOT 2
- Support for DataTestMethods when filtering on rerun HOT 6
- Task ends in success when tests have failed HOT 9
- how to enable code coverage with release configuration setup HOT 8
- Feature request: Search for all Projects HOT 9
- Fully qualified name not used in re-run, tests executed across multiple unit test projects in the same solution HOT 9
- Test Reruns don't seem to be specific to framework version HOT 7
- Allow multiple logger arguments HOT 5
- Allow inline runsettings arguments HOT 16
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dotnet-test-rerun.