All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.specs2.reporter.HtmlExporting.scala Maven / Gradle / Ivy

There is a newer version: 3.7
Show newest version
package org.specs2
package reporter

import main.Arguments
import specification._
import scalaz.Scalaz._

/**
 * Trait for exporting the specification as Html files
 */
trait HtmlExporting extends Exporting with HtmlPrinter with HtmlFileWriter {

  def export(implicit arguments: Arguments): ExecutingSpecification => ExecutedSpecification = (spec: ExecutingSpecification) => {
    val executed = spec.execute
    val args = arguments <| executed.arguments
    print(executed)(args) |> writeFiles(args)
    executed
  }
}
object HtmlExporting extends HtmlExporting




© 2015 - 2024 Weber Informatics LLC | Privacy Policy