Skip to main content

[SpecFlow+ LivingDoc] Filter by example tag for scenario outline ?

Comments

4 comments

  • Mario Steiner

    Hi Ilija, sorry for the late reply. Just to confirm are you trying to filter for tagged examples, right? Are you trying to filter for tags with the following functionality and don't get results?

    0
  • Ilija Ivanovski
     

    Yes that is correct. The filter returns zero results.

    However, I have noticed something else just yesterday regarding scenario outlines.
    If we take in consideration the same example from the screenshot above.
    I could not execute that specific example with tag @daily from azure devops pipeline with VS test task.
    Then I tried adding the same tag @daily not only above the Examples but also above the Scenario Outline as well... and that worked as expected.
    Perhaps it's the same issue here with the filter? If yes is it safe to say that tags in any Example from Scenario Outline must be also defined above the same Scenario Outline?

    0
  • Mario Steiner

    Yes, currently we are only supporting tagged Scenarios and Scenario Outline. I guess as a workaround you could split the Scenario Outline into two Scenario Outlines:

    @daily

    Scenario Outline:

    @weekly

    Scenario Outline:

    then also the filtering should work as expected (that's how we are using tags, only on Scenario/Scenario Outline level).

    Please let me know if that would work out for you as well

    0
  • Ilija Ivanovski
     

    Yes it works the way we have concluded with the Scenario/Scenario Outline tags level.

    Thank you Mario.

    0

Please sign in to leave a comment.

Powered by Zendesk