net.thucydides.junit.runners
Class ThucydidesParameterizedRunner

Package class diagram package ThucydidesParameterizedRunner
java.lang.Object
  extended by org.junit.runner.Runner
      extended by org.junit.runners.ParentRunner<org.junit.runner.Runner>
          extended by org.junit.runners.Suite
              extended by net.thucydides.junit.runners.ThucydidesParameterizedRunner
All Implemented Interfaces:
org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable

public class ThucydidesParameterizedRunner
extends org.junit.runners.Suite

Run a Thucydides test suite using a set of data. Similar to the JUnit parameterized tests, but better ;-).


Nested Class Summary
 
Nested classes/interfaces inherited from class org.junit.runners.Suite
org.junit.runners.Suite.SuiteClasses
 
Constructor Summary
ThucydidesParameterizedRunner(Class<?> klass)
          Only called reflectively.
ThucydidesParameterizedRunner(Class<?> klass, Configuration configuration, WebDriverFactory webDriverFactory)
          Only used for testing.
 
Method Summary
 void generateReports()
           
protected  List<org.junit.runner.Runner> getChildren()
           
 List<org.junit.runner.Runner> getRunners()
           
protected  int getThreadCountFor(Class<?> klass)
           
 void run(org.junit.runner.notification.RunNotifier notifier)
           
protected  boolean runTestsInParallelFor(Class<?> klass)
           
 void subscribeReporter(AcceptanceTestReporter reporter)
           
 
Methods inherited from class org.junit.runners.Suite
describeChild, emptySuite, runChild
 
Methods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classBlock, classRules, collectInitializationErrors, filter, getDescription, getName, getRunnerAnnotations, getTestClass, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses
 
Methods inherited from class org.junit.runner.Runner
testCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThucydidesParameterizedRunner

public ThucydidesParameterizedRunner(Class<?> klass,
                                     Configuration configuration,
                                     WebDriverFactory webDriverFactory)
                              throws Throwable
Only used for testing.

Throws:
Throwable

ThucydidesParameterizedRunner

public ThucydidesParameterizedRunner(Class<?> klass)
                              throws Throwable
Only called reflectively. Do not use programmatically.

Throws:
Throwable
Method Detail

runTestsInParallelFor

protected boolean runTestsInParallelFor(Class<?> klass)

getThreadCountFor

protected int getThreadCountFor(Class<?> klass)

getChildren

protected List<org.junit.runner.Runner> getChildren()
Overrides:
getChildren in class org.junit.runners.Suite

run

public void run(org.junit.runner.notification.RunNotifier notifier)
Overrides:
run in class org.junit.runners.ParentRunner<org.junit.runner.Runner>

generateReports

public void generateReports()

subscribeReporter

public void subscribeReporter(AcceptanceTestReporter reporter)

getRunners

public List<org.junit.runner.Runner> getRunners()


Copyright © 2011-2013 Wakaleo Consulting. All Rights Reserved.