Class ContextTagProvider

java.lang.Object
net.thucydides.core.statistics.service.ContextTagProvider
All Implemented Interfaces:
CoreTagProvider, TagProvider

public class ContextTagProvider extends Object implements TagProvider, CoreTagProvider
Allows tags to be added via the injected.tag system property. They will be added to all of the test outcomes for a particular test run.
  • Constructor Details

    • ContextTagProvider

      public ContextTagProvider()
    • ContextTagProvider

      public ContextTagProvider(EnvironmentVariables environmentVariables)
  • Method Details

    • getTagsFor

      public Set<TestTag> getTagsFor(TestOutcome testOutcome)
      Description copied from interface: TagProvider
      Returns the tags associated with a given test outcome.
      Specified by:
      getTagsFor in interface TagProvider
      Parameters:
      testOutcome - the outcome for a specific test
      Returns:
      the tags associated with a given test outcome.