JSPM

@serenity-js/console-reporter

2.0.1-alpha.110
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 13632
  • Score
    100M100P100Q201105F
  • License Apache-2.0

Serenity/JS console reporter

Package Exports

  • @serenity-js/console-reporter

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@serenity-js/console-reporter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Serenity/JS

Serenity/JS is a Node.js library designed to make acceptance and regression testing of modern full-stack applications faster, more collaborative and easier to scale.

Serenity/JS Console Reporter

The @serenity-js/console-reporter module reports the progress of your Serenity/JS tests to the terminal.

The ConsoleReporter supports both colour and monochromatic output, as well as simple colour themes for terminals with dark and light backgrounds.

Installation

npm install --save-dev @serenity-js/core @serenity-js/console-reporter

Windows

If you're on Windows, consider using Windows Terminal instead of cmd.exe to benefit from the colour output.

Usage

To allow Serenity/JS to print the progress report to standard output, assign the ConsoleReporter to the Stage.

This can be done in your protractor.conf.js file if you're using Protractor, or programmatically.

Programmatic configuration

import { serenity } form '@serenity-js/core';
import { ConsoleReporter } form '@serenity-js/console-reporter';

serenity.setTheStage(
    ConsoleReporter.withDefaultColourSupport(),
);

Protractor

// protractor.conf.js

const { ConsoleReporter } = require('@serenity-js/console-reporter');

exports.config = {
  framework:      'custom',
    frameworkPath: require.resolve('@serenity-js/protractor/adapter'),
    serenity: {
      crew: [
        ConsoleReporter.withDefaultColourSupport(),
      ],
      // other Serenity/JS config
    },
    // other Protractor config
 };

Colour Themes

Consult the API docs of the ConsoleReporter class to learn more about the supported colour themes.