diff options
Diffstat (limited to 'src/main/scala/org/perl8/test/harness')
7 files changed, 29 insertions, 28 deletions
diff --git a/src/main/scala/org/perl8/test/harness/MultiTestReporter.scala b/src/main/scala/org/perl8/test/harness/MultiTestReporter.scala index 8437c4a..56f32fd 100644 --- a/src/main/scala/org/perl8/test/harness/MultiTestReporter.scala +++ b/src/main/scala/org/perl8/test/harness/MultiTestReporter.scala @@ -1,10 +1,10 @@ -package org.perl8.test.harness +package com.iinteractive.test.harness /** Classes that implement `MultiTestReporter` are capable of running a group * of test classes, given their names. This typically involves some sort of * summarization. * - * @see [[org.perl8.test.harness.Reporter Reporter]]. + * @see [[com.iinteractive.test.harness.Reporter Reporter]]. */ trait MultiTestReporter { /** Runs the test classes identifed by the list of fully qualified class diff --git a/src/main/scala/org/perl8/test/harness/Reporter.scala b/src/main/scala/org/perl8/test/harness/Reporter.scala index bf818db..a47444b 100644 --- a/src/main/scala/org/perl8/test/harness/Reporter.scala +++ b/src/main/scala/org/perl8/test/harness/Reporter.scala @@ -1,9 +1,9 @@ -package org.perl8.test.harness +package com.iinteractive.test.harness /** Classes that implement `Reporter` are capable of running a test class, * given its name. * - * @see [[org.perl8.test.harness.MultiTestReporter MultiTestReporter]]. + * @see [[com.iinteractive.test.harness.MultiTestReporter MultiTestReporter]]. */ trait Reporter { /** Runs the test class identifed by the fully qualified class name diff --git a/src/main/scala/org/perl8/test/harness/SummarizedTests.scala b/src/main/scala/org/perl8/test/harness/SummarizedTests.scala index 207cc18..cd555dd 100644 --- a/src/main/scala/org/perl8/test/harness/SummarizedTests.scala +++ b/src/main/scala/org/perl8/test/harness/SummarizedTests.scala @@ -1,4 +1,4 @@ -package org.perl8.test.harness +package com.iinteractive.test.harness import java.io.{PipedInputStream,PipedOutputStream} import scala.concurrent.Await @@ -6,17 +6,18 @@ import scala.concurrent.duration.Duration import scala.concurrent.ExecutionContext.Implicits.global import scala.concurrent.Future -import org.perl8.test.tap.{Parser,TAPEvent,TAPResult,TodoDirective} -import org.perl8.test.Test +import com.iinteractive.test.tap.{Parser,TAPEvent,TAPResult,TodoDirective} +import com.iinteractive.test.Test /** This is a trait for classes that run tests and summarize the results. It * provides a single `runOneTest` method, which runs a test class and - * produces a stream of [[org.perl8.test.tap.TAPEvent TAP events]] which can - * be used to produce whatever summarized output you need. + * produces a stream of [[com.iinteractive.test.tap.TAPEvent TAP events]] + * which can be used to produce whatever summarized output you need. */ trait SummarizedTests { - /** Runs a single [[org.perl8.test.Test test]] instance, calling `cb` with - * each [[org.perl8.test.tap.TAPEvent TAP event]] as it is produced. + /** Runs a single [[com.iinteractive.test.Test test]] instance, calling `cb` + * with each [[com.iinteractive.test.tap.TAPEvent TAP event]] as it is + * produced. * * @return The overall result of the test instance. */ diff --git a/src/main/scala/org/perl8/test/harness/SummaryReporter.scala b/src/main/scala/org/perl8/test/harness/SummaryReporter.scala index 1901bcf..a5fe1e0 100644 --- a/src/main/scala/org/perl8/test/harness/SummaryReporter.scala +++ b/src/main/scala/org/perl8/test/harness/SummaryReporter.scala @@ -1,8 +1,8 @@ -package org.perl8.test.harness +package com.iinteractive.test.harness -import org.perl8.test.tap.{TAPEvent,StartEvent,ResultEvent,PlanEvent,EndEvent} -import org.perl8.test.tap.{TAPResult,TodoDirective} -import org.perl8.test.Test +import com.iinteractive.test.tap.{TAPEvent,TAPResult,TodoDirective} +import com.iinteractive.test.tap.{StartEvent,ResultEvent,PlanEvent,EndEvent} +import com.iinteractive.test.Test /** Runs a series of tests. The TAP output from these tests is parsed, and * output is produced which is similar in style to Perl's diff --git a/src/main/scala/org/perl8/test/harness/TAPReporter.scala b/src/main/scala/org/perl8/test/harness/TAPReporter.scala index 58dd175..8a4dc9f 100644 --- a/src/main/scala/org/perl8/test/harness/TAPReporter.scala +++ b/src/main/scala/org/perl8/test/harness/TAPReporter.scala @@ -1,7 +1,7 @@ -package org.perl8.test.harness +package com.iinteractive.test.harness -import org.perl8.test.tap -import org.perl8.test.Test +import com.iinteractive.test.tap +import com.iinteractive.test.Test /** Runs a single test. The TAP stream from that test is written directly to * stdout/stderr. diff --git a/src/main/scala/org/perl8/test/harness/TestHarness.scala b/src/main/scala/org/perl8/test/harness/TestHarness.scala index f2f3553..7b8f4ae 100644 --- a/src/main/scala/org/perl8/test/harness/TestHarness.scala +++ b/src/main/scala/org/perl8/test/harness/TestHarness.scala @@ -1,4 +1,4 @@ -package org.perl8.test.harness +package com.iinteractive.test.harness /** This is the entry point to running tests written with this library from * the command line. Note that this library also implements the @@ -9,7 +9,7 @@ package org.perl8.test.harness * will run that test and write its TAP stream to the console. * * {{{ - * $ scala org.perl8.test.harness.TestHarness MyTest + * $ scala com.iinteractive.test.harness.TestHarness MyTest * ok 1 * ok 2 * 1..2 @@ -21,7 +21,7 @@ package org.perl8.test.harness * [[https://metacpan.org/module/Test::Harness Perl's Test::Harness]]. * * {{{ - * $ scala org.perl8.test.harness.TestHarness MyTest1 MyTest2 + * $ scala com.iinteractive.test.harness.TestHarness MyTest1 MyTest2 * MyTest1 .. ok * MyTest2 .. ok * All tests successful. @@ -32,16 +32,16 @@ package org.perl8.test.harness * This application also accepts a few command line options to customize its * behavior: * - * - `-r`: Alternative [[org.perl8.test.harness.Reporter Reporter]] class to - * use for running a single test. + * - `-r`: Alternative [[com.iinteractive.test.harness.Reporter Reporter]] + * class to use for running a single test. * - `-R`: Alternative - * [[org.perl8.test.harness.MultiTestReporter MultiTestReporter]] + * [[com.iinteractive.test.harness.MultiTestReporter MultiTestReporter]] * class to use for running a group of tests. Also enables using the * MultiTestReporter for a single test. * - `--help`: Prints usage information. */ object TestHarness { - import org.perl8.test.Test + import com.iinteractive.test.Test /** Entry point for the harness application. */ def main (args: Array[String]) { @@ -66,8 +66,8 @@ object TestHarness { protected def parseOpts (args: List[String]): Map[String, Any] = args match { case Nil => Map( - "single-reporter" -> "org.perl8.test.harness.TAPReporter", - "multi-reporter" -> "org.perl8.test.harness.SummaryReporter", + "single-reporter" -> "com.iinteractive.test.harness.TAPReporter", + "multi-reporter" -> "com.iinteractive.test.harness.SummaryReporter", "prefer-single" -> true, "test-classes" -> Nil ) diff --git a/src/main/scala/org/perl8/test/harness/package.scala b/src/main/scala/org/perl8/test/harness/package.scala index 919abc2..1b74f9d 100644 --- a/src/main/scala/org/perl8/test/harness/package.scala +++ b/src/main/scala/org/perl8/test/harness/package.scala @@ -1,4 +1,4 @@ -package org.perl8.test +package com.iinteractive.test /** Classes to handle running test instances and providing output. */ package object harness { |