Posted by
Marcin Obel – November 23, 2009
Installation of MSpec BDD framework from source code is quite annoying. With each release you have to deploy everything manually one more time what in fact is hard to accept in 21th century. I know that work on Open Source project requires a lot of time (I have my own project called ByteCarrot) and you cannot do everything. Because of that I decided to help a little bit creators of MSpec and I have prepared an installer for this BDD framework. It is based on WiX and latest release of MSpec witch is version 0.3.
The installer is able to automatically integrate MSpec with TestDriven.NET and ReSharper (4.1, 4.5, 5.0). This is first version of the installer and of course like always there can be some bugs so please let me know if you find something.
Posted by
Marcin Obel – September 23, 2009
Few days ago Pawel Lesnikowski has blogged about his Live Templates for ReSharper. Because I think it is good idea to share such things with other developers I decided to show my Live Templates I have made to be able to create BDD specifications with MSpec faster. Here they are:
specc – Short template for MSpec BDD context
public abstract class with_$Context$
{
Establish context = () =>
{
$END$
};
}
specf – Full template for MSpec BDD specification
[Subject(typeof($Subject$))]
public class when_$Specification$
{
Establish context = () =>
{
};
Because of = () =>
{
};
It should_$Behaviour$;$END$
}
specs – Short template for MSpec BDD specification
[Subject(typeof($Subject$))]
public class when_$Specification$
{
It should_$Behaviour$;$END$
}
spect – Default template for MSpec BDD specification
[Subject(typeof($Subject$))]
public class when_$Specification$ : with_$Context$
{
Because of = () =>
{
};
It should_$Behaviour$;$END$
}
Here you can download definition of all mentioned templates which can be imported to your ReSharper: MSpec.LiveTemplates