Class ContextTagProvider

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

public class ContextTagProvider
extends java.lang.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 Summary

    Constructors
    Constructor Description
    ContextTagProvider()  
    ContextTagProvider​(EnvironmentVariables environmentVariables)  
  • Method Summary

    Modifier and Type Method Description
    java.util.Set<TestTag> getTagsFor​(TestOutcome testOutcome)
    Returns the tags associated with a given test outcome.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ContextTagProvider

      public ContextTagProvider()
    • ContextTagProvider

      public ContextTagProvider​(EnvironmentVariables environmentVariables)
  • Method Details

    • getTagsFor

      public java.util.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.