Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-469326: C# unit test Ignore spills into subsequent tests

$
0
0
Reporter Johan Lundberg (jmlundberg) Johan Lundberg (jmlundberg)
Created Apr 19, 2018 11:51:35 AM
Updated Apr 19, 2018 11:51:35 AM
Subsystem No Subsystem
Assignee Unassigned
Priority Normal
State Submitted
Type Unspecified
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
In the example below, only Test1 is set to be ignored, but at the start of the test session, as well as during test execution, also
test2, test3 is marked as Ignored, with the ignore text from Test0.

To reproduce, use the following code, and start the tests by clicking to run category "LongRunningX".




[TestFixture]
[Category("LongRunningX")]
internal class Test0
{
[Test]
public void Sleeper()
{
System.Threading.Thread.Sleep(10000);
}
}

[TestFixture]
[Ignore("IGNORE TEST TEXT")]
[Category("LongRunningX")]
internal class Test1
{
}

[TestFixture]
[Category("LongRunning")]
[Category("LongRunningX")]
internal class Test2 {
[Test]
public void Sleeper()
{
System.Threading.Thread.Sleep(10000);
}
}

[TestFixture]
[Category("LongRunningX")]
internal class Test3
{
}

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>