TestStack/TestStack.BDDfy — pull request #6 by dzhariy (2012-08-29 14:58:58+00:00)
Title: 1) Disable Console Report Processing  2) Allow to BDDfy in abstract classes

Hi Mehdi,
I have 2 minor changes for BDDfy that makes my life a little bit easy. And will be happy if you consider those changes and accept or rewrite them according to the framework ideology.
1) To allow using the BDDfy in abstract classes I have removed new() constraint in FluentScannerExtensions.cs I am using Generic test fixtures for PageObjects (Selenium).
I have a class BaseTests. And derived class LoginPageTests: BaseTests.
And I want to see all inherited tests in the fixture LoginPageTests, but I do not want to see the tests in the fixture BaseTests. To resolve this situation I have marked class BaseTests as abstract.
But, BDDfy cannot be used in abstract classes. My changes solve this issue.

2) I have added a quick and dirty hack into ConsoleReporter.cs. I am really need to disable the console output from BDDfy. I am using Gallio Icarus and MbUnit test runner. So I want to add Custom formatter to have a pretty log. But, before I do that I have to disable the ConsoleReporter to avoid the log duplication.
And now I can do that using the following lines:

[AssemblyFixture]
public class TestGlobals
{
[FixtureSetUp]
public void GlobalFixtureSetUp()
{
TestStack.BDDfy.Processors.ConsoleReporter.SkipProcessing = true;

}
}