Skip to content

Instantly share code, notes, and snippets.

@cbfranca
Created April 16, 2014 22:54
Show Gist options
  • Save cbfranca/10940428 to your computer and use it in GitHub Desktop.
Save cbfranca/10940428 to your computer and use it in GitHub Desktop.
[Tag("AnotherTag")]
class AnotherSpec : nspec
{
void describe_rentabilidade_produtos()
{
context["when data are valids"] = () =>
{
it["b"].should_be("b");
}
}
}
[Tag("SomeTag")]
class SomeSpec : nspec
{
void before_all()
{
Console.WriteLine("Database stuff...");
}
void describe_rentabilidade_produtos()
{
context["when data are valids"] = () =>
{
it["test"].should_be("test");
}
}
}
@cbfranca
Copy link
Author

Here is how i'm running tests:

NSpecRunner.exe Everest.ControleFundos.Specs.dll --tag SomeTag;
NSpecRunner.exe Everest.ControleFundos.Specs.dll --tag AnotherTag;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment