Resharper execution log order by nunit attributes
Hi,
I am using resharper with nunit in Visual studio 2015.
I would like to know the resharper execution log sequence by nunit attributes
Example: I have 2 classes
1. setup fixture class
[SetUpFixture]
public class SetUpFixtureTest
{
[OneTimeSetUp]
public void OneTimeSetUpTest()
{
Console.WriteLine("*********OneTimeSetUp Test ************* ");
}
}
2. test set class
[TestCase]
public void FTest()
{
Console.WriteLine("*****************Test**************");
}
As per my understanding.. first OneTimeSetUpTest() method will execute before Test method "FTest()"
but in resharper execution log.. the log from test method printing 1st and last log printing from OneTimeSetUpTest()
Resharper Log:
*****************Test**************
*********OneTimeSetUp Test *************
please help me to understand log sequence
Please sign in to leave a comment.
Hello!
Thank you for contacting us.
This seems to be NUnit issue which caused by the fact that NUnit engine runs all tests and only then generates output which doesn't represent actual run order.
Please see related question on SO: https://stackoverflow.com/questions/44030447/why-nunit3-onetimesetup-is-called-after-test-and-not-before
Thank you.