How to run NUnit test fixtures serially?

前端 未结 4 1466
暗喜
暗喜 2020-12-29 05:04

I have several suites of integration tests implemented in C#/NUNit. Each test suite is a separate class, each fixture setup creates and populates a SQL Server database from

4条回答
  •  温柔的废话
    2020-12-29 05:34

    Are you sure about this ? I just tried this out.. by putting a trace of the following form in tests in 3 diff NUnit fixtures followed by a "Run all". Doesn't seem to be running in parallel.

    Trace.WriteLine(DateTime.Now.ToString("hh:mm:ss.ffff") + "VC:Start");
    Trace.WriteLine(DateTime.Now.ToString("hh:mm:ss.ffff") + "VC:Done");
    

    Output I see is : (R# Build 5.1.1753.1)

    01:06:41.6639IOC
    01:06:41.6649Done - IOC
    
    01:06:41.6679VC:Start
    01:06:41.6729VC:Done
    
    01:06:41.2439Mef
    01:06:41.6589Mef-Done
    

提交回复
热议问题