jasmine-terminal-reporter

WebJar for jasmine-terminal-reporter

License

License

MIT
Categories

Categories

ASM Application Layer Libs Bytecode Manipulation MINA Net Networking
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

jasmine-terminal-reporter
Last Version

Last Version

1.0.3
Release Date

Release Date

Type

Type

jar
Description

Description

jasmine-terminal-reporter
WebJar for jasmine-terminal-reporter
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/jbblanchet/jasmine-terminal-reporter

Download jasmine-terminal-reporter

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/jasmine-terminal-reporter/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>jasmine-terminal-reporter</artifactId>
    <version>1.0.3</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/jasmine-terminal-reporter/
implementation 'org.webjars.npm:jasmine-terminal-reporter:1.0.3'
// https://jarcasting.com/artifacts/org.webjars.npm/jasmine-terminal-reporter/
implementation ("org.webjars.npm:jasmine-terminal-reporter:1.0.3")
'org.webjars.npm:jasmine-terminal-reporter:jar:1.0.3'
<dependency org="org.webjars.npm" name="jasmine-terminal-reporter" rev="1.0.3">
  <artifact name="jasmine-terminal-reporter" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='jasmine-terminal-reporter', version='1.0.3')
)
libraryDependencies += "org.webjars.npm" % "jasmine-terminal-reporter" % "1.0.3"
[org.webjars.npm/jasmine-terminal-reporter "1.0.3"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : indent-string jar [2.1.0,3)
org.webjars.npm : pluralize jar [1.2.1,2)

Project Modules

There are no modules declared in this project.

jasmine-terminal-reporter

A simple terminal reporter for Jasmine, inspired by juliemr/minijasminenode.

Build Status Dependency Status

installation

Get the library with

npm install jasmine-terminal-reporter

usage

Depends on your jasmine spec runner, but to import and instantiate the reporter:

    var Reporter = require('jasmine-terminal-reporter');
    var reporter = new Reporter(options)

output

By default, the output will be fairly compact. Each test is represented by a green dot (passed), a red F (failed) or a yellow * (pending). Every failed test and expectation will be detailed, and a summary will be printed at the end:

.....................F..*..*....*.....

Failures:
1) A suite with a test will fail
1.1) Expected true to be false.

38 specs, 1 failures, 3 pending
Finished in 0.5 seconds

If verbose mode is selected, each suite and spec is detailed:

Running 38 specs.

A suite
  nested in another
      has a test that passes: passed
      has a test that fails: failed

[...]

Failures:
1) A suite nested in another has a test that fails
1.1) Expected true to be false.

38 specs, 1 failure
Finished in 0.5 seconds

options

  • isVerbose: see above.

  • includeStackTrace: (Default: false) Displays the stack trace on failed tests

  • showColors: (Default: true)

  • done: Optional method to call when jasmine is done. First argument is true if all tests have passed or are pending.

  • stackFilter: Optional method called to format the stack trace. Receives a string as the first parameter and returns the formatted stack trace.

  • print: Optionnal method used to display the output. By default, will write to process.stdout.

Versions

Version
1.0.3