Allow ApprovalTests to run under CruiseControl.NET without launching reporters. This extends the pattern for TeamCityReport to CruiseControlNetReporter.

Hey Llewellyn,

We wanted to be able to easily have the ApprovalTests work while running under CruiseControl.NET without launching the reporters. In our situation CruiseControl.NET launches NAnt which then runs NUnit (console) which is running the tests. In this situation ApprovalTests leaves behind the running reporter processes because there is no detection of ApprovalTests being run from CruiseControl.NET.

We saw that this problem was already solved for TeamCity (TeamCityReporter) and we followed that same pattern for CruiseControl.NET. We used one of the main CruiseControl.NET integration properties CCNetLabel ( http://cruisecontrolnet.org/projects/ccnet/wiki/Integration_Properties ) which is set as an environment variable (similar to TeamCity).

We added it to DefaultFrontLoaderReporter so that automatically the ApprovalTests work under CruiseControl.NET without leaving behind lots of processes running reporters.

If you could add this into the main respository that would be great.

Thanks,
Michael Ferrante