mattflo/NSpec — pull request #24 by imrewonga (2011-12-22 15:29:51+00:00)
Title: removing examples that hasn't run in Context.TrimSkippedDescendants()

Hi Amir, Matt,

I started to play around with tags, nice feature. What I didn't like was that the output included examples that haven't run if I used example-level tags in my filter:

context["whatever"]...
{
it["should be run", "shouldberun"]...
it["should not be run"]...
}

If I run this with tag filter "shouldberun" only the relevant example runs but both show up in the output - which not only litters it but can also give the false information that "should not be run" ran successfully as no error message is printed.

I added a single line to fix this plus a new test to describe_tag_filtering to verify it.

All the best, keep up the good work!
Imre