Racer Feature Focus – Using Attributes

In the last PDC Microsoft shown a new tool called Chess (http://channel9.msdn.com/pdc2008/TL58/) that will help the user find Concurrent bugs. Unfortunately Chess is still a Microsoft Research project and until it will become an actual product the only product that can deterministically find deadlock issues is Racer.

Software developers that don’t want to wait until Chess comes out can use the latest Racer feature – Attribute support.

  • Use ParallelInspection attribute to define a multithreaded test instead of the ThreadTest class.
  • Use ScenarioTimeout, TestTimeout and OnNumberOfThreads attributes instead of methods with the same name.
  • Use the Unit Testing framework’s Setup and TearDown methods instead of ThreadTest.ScenarioSetup and ThreadTest.ScenarioTearDown.
    • Only supported for MSTest & NUnit for now.

 

And so the following code:

 

Will look like (using NUnit):