Uploaded image for project: 'VNF Validation Program'
  1. VNF Validation Program
  2. VVP-330

Allow OR Categories for Test Selection

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Medium Medium
    • Frankfurt Release
    • None
    • None
    • VVP- Frankfurt 2

      Today, when the @categories decorator is applied to a test, then the user must specify all categories via the --categories property to trigger that tests.

      There may be situations where you want the test to be triggered if any of categories match.

      For example, a test mapped to categories A and B should be triggered if either if those categories are selected via the command line.

      The proposed syntax for this will be:

      @categories(any_of=("cat1", "cat2"))

      At this time, using the all inclusive list (i.e. default behavior) along with the any_of list will not be supported and a RuntimeError will be raised if this condition is encountered.

      Ex: @categories("A", any_of=("B", "C)) <- RuntimeError

            tl2972 tl2972
            tl2972 tl2972
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: