3.22.4 ā€¢ Published 3 days ago

@serenity-js/console-reporter v3.22.4

Weekly downloads
1,723
License
Apache-2.0
Repository
github
Last release
3 days ago

Serenity/JS

Follow Serenity/JS on LinkedIn Watch Serenity/JS on YouTube Join Serenity/JS Community Chat Support Serenity/JS on GitHub

Serenity/JS is an innovative open-source framework designed to make acceptance and regression testing of complex software systems faster, more collaborative and easier to scale.

ā­ļø Get started with Serenity/JS!

šŸ‘‹ Join the Serenity/JS Community!

Serenity/JS Console Reporter

@serenity-js/console-reporter writes text-based reports to your computer terminal.

Installation

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

To learn more about Serenity/JS and how to use it on your project, follow the Serenity/JS Getting Started guide.

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:

  • via playwright.config.ts, if you're using Serenity/JS with Playwright Test
  • via wdio.conf.ts, if you're using Serenity/JS with WebdriverIO
  • via protractor.conf.js, if you're using Serenity/JS with Protractor
  • or programmatically.

Usage with Playwright Test

Learn more about using Serenity/JS with Playwright Test.

// playwright.config.ts
import type { PlaywrightTestConfig } from '@serenity-js/playwright-test'

const config: PlaywrightTestConfig = {
    reporter: [
        [ '@serenity-js/playwright-test', {
            crew: [
                // console reporter with default settings
                '@serenity-js/console-reporter',
                
                // console reporter with a theme for 'dark', 'light' or 'mono' terminals
                // [ '@serenity-js/console-reporter', { theme: 'auto' } ]                
            ]
        }]
    ],

    // Other configuration omitted for brevity
    // For details, see https://playwright.dev/docs/test-configuration    
}

export default config

Usage with WebdriverIO

Learn more about using Serenity/JS with WebdriverIO.

// wdio.conf.ts

import { WebdriverIOConfig } from '@serenity-js/webdriverio'

export const config: WebdriverIOConfig = {

    framework: '@serenity-js/webdriverio',

    serenity: {
        crew: [
            // console reporter with default settings
            '@serenity-js/console-reporter',

            // console reporter with a theme for 'dark', 'light' or 'mono' terminals
            // [ '@serenity-js/console-reporter', { theme: 'auto' } ]  
        ]
    },

    // Other configuration omitted for brevity
    // For details, see https://webdriver.io/docs/options
}

Usage with Protractor

Learn more about using Serenity/JS with Protractor.

// protractor.conf.js

exports.config = {

    framework:      'custom',
    frameworkPath:  require.resolve('@serenity-js/protractor/adapter'),

    serenity: {
        crew: [
            // console reporter with default settings
            '@serenity-js/console-reporter',

            // console reporter with a theme for 'dark', 'light' or 'mono' terminals
            // [ '@serenity-js/console-reporter', { theme: 'auto' } ]  
        ]
    },

    // ...
}

Programmatic configuration

Learn more about configuring Serenity/JS programmatically.

import { configure } from '@serenity-js/core'
import { ConsoleReporter } from '@serenity-js/console-reporter'

configure({
    crew: [
        ConsoleReporter.withDefaultColourSupport(),
    ],
})

Colour Themes

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

šŸ“£ Stay up to date

New features, tutorials, and demos are coming soon! Follow Serenity/JS on LinkedIn, subscribe to Serenity/JS channel on YouTube and join the Serenity/JS Community Chat to stay up to date! Please also make sure to star ā­ļø Serenity/JS on GitHub to help others discover the framework!

Follow Serenity/JS on LinkedIn Watch Serenity/JS on YouTube Join Serenity/JS Community Chat GitHub stars

šŸ’› Support Serenity/JS

If you appreciate all the effort that goes into making sophisticated tools easy to work with, please support our work and become a Serenity/JS GitHub Sponsor today!

GitHub Sponsors

3.22.4

3 days ago

3.22.3

8 days ago

3.22.2

20 days ago

3.22.1

23 days ago

3.22.0

28 days ago

3.21.2

1 month ago

3.21.1

2 months ago

3.21.0

2 months ago

3.20.0

2 months ago

3.19.0

2 months ago

3.18.1

3 months ago

3.18.0

3 months ago

3.17.0

3 months ago

3.16.2

3 months ago

3.16.1

3 months ago

3.16.0

3 months ago

3.15.1

4 months ago

3.15.0

4 months ago

3.14.2

5 months ago

3.14.1

5 months ago

3.13.2

6 months ago

3.13.1

6 months ago

3.13.3

6 months ago

3.12.0

7 months ago

3.14.0

5 months ago

3.13.0

7 months ago

3.9.1

9 months ago

3.9.0

9 months ago

3.10.1

8 months ago

3.8.0

9 months ago

3.10.0

9 months ago

3.10.3

8 months ago

3.10.2

8 months ago

3.11.0

7 months ago

3.7.1

10 months ago

3.7.0

10 months ago

3.11.1

7 months ago

3.7.2

10 months ago

3.6.1

10 months ago

3.6.0

10 months ago

3.10.4

8 months ago

3.5.0

10 months ago

3.4.2

10 months ago

3.2.1

12 months ago

3.2.0

1 year ago

3.4.0

11 months ago

3.4.1

11 months ago

3.3.1

11 months ago

3.3.0

11 months ago

3.0.0-rc.45

1 year ago

3.0.0-rc.44

1 year ago

3.0.0-rc.43

1 year ago

3.1.3

1 year ago

3.1.2

1 year ago

3.1.1

1 year ago

3.1.0

1 year ago

3.1.6

1 year ago

3.1.5

1 year ago

3.0.1

1 year ago

3.0.0

1 year ago

3.0.0-rc.42

1 year ago

3.0.0-rc.41

1 year ago

3.0.0-rc.37

1 year ago

3.0.0-rc.39

1 year ago

3.0.0-rc.38

1 year ago

3.0.0-rc.40

1 year ago

3.0.0-rc.28

2 years ago

3.0.0-rc.29

2 years ago

3.0.0-rc.35

1 year ago

3.0.0-rc.34

1 year ago

3.0.0-rc.36

1 year ago

3.0.0-rc.31

2 years ago

3.0.0-rc.30

2 years ago

3.0.0-rc.33

2 years ago

3.0.0-rc.32

2 years ago

3.0.0-rc.27

2 years ago

3.0.0-rc.24

2 years ago

3.0.0-rc.23

2 years ago

3.0.0-rc.26

2 years ago

3.0.0-rc.25

2 years ago

3.0.0-rc.20

2 years ago

3.0.0-rc.22

2 years ago

3.0.0-rc.21

2 years ago

2.33.10

2 years ago

2.33.7

2 years ago

2.33.9

2 years ago

2.33.8

2 years ago

3.0.0-rc.17

2 years ago

3.0.0-rc.19

2 years ago

3.0.0-rc.18

2 years ago

2.33.6

2 years ago

2.33.5

2 years ago

3.0.0-rc.15

2 years ago

3.0.0-rc.16

2 years ago

2.33.4

2 years ago

3.0.0-rc.14

2 years ago

2.33.3

2 years ago

3.0.0-rc.13

2 years ago

2.33.1

2 years ago

2.33.0

2 years ago

2.33.2

2 years ago

2.32.7

2 years ago

2.32.6

2 years ago

3.0.0-rc.12

2 years ago

3.0.0-rc.6

2 years ago

3.0.0-rc.5

2 years ago

3.0.0-rc.11

2 years ago

3.0.0-rc.4

2 years ago

3.0.0-rc.10

2 years ago

3.0.0-rc.9

2 years ago

3.0.0-rc.8

2 years ago

3.0.0-rc.7

2 years ago

2.32.4

2 years ago

2.32.5

2 years ago

3.0.0-rc.2

2 years ago

3.0.0-rc.1

2 years ago

3.0.0-rc.0

2 years ago

3.0.0-rc.3

2 years ago

2.32.3

3 years ago

2.32.2

3 years ago

2.32.1

3 years ago

2.32.0

3 years ago

2.31.1

3 years ago

2.31.0

3 years ago

2.30.3

3 years ago

2.30.2

3 years ago

2.30.1

3 years ago

2.30.0

3 years ago

2.29.9

3 years ago

2.29.8

3 years ago

2.29.7

3 years ago

2.29.6

3 years ago

2.29.5

3 years ago

2.29.4

3 years ago

2.29.3

3 years ago

2.29.1

3 years ago

2.29.0

3 years ago

2.28.1

3 years ago

2.28.0

3 years ago

2.27.1

3 years ago

2.27.0

3 years ago

2.26.2

3 years ago

2.26.0

3 years ago

2.25.9

3 years ago

2.25.8

3 years ago

2.25.7

3 years ago

2.25.6

3 years ago

2.25.5

3 years ago

2.25.4

3 years ago

2.25.3

3 years ago

2.25.2

3 years ago

2.25.1

3 years ago

2.25.0

3 years ago

2.24.1

3 years ago

2.24.0

3 years ago

2.23.2

3 years ago

2.23.1

3 years ago

2.23.0

3 years ago

2.22.0

3 years ago

2.21.0

3 years ago

2.20.1

3 years ago

2.20.0

3 years ago

2.19.10

3 years ago

2.19.9

3 years ago

2.19.8

3 years ago

2.19.6

3 years ago

2.19.7

3 years ago

2.19.5

3 years ago

2.19.4

3 years ago

2.19.3

3 years ago

2.19.2

3 years ago

2.19.1

3 years ago

2.19.0

3 years ago

2.18.2

3 years ago

2.18.1

3 years ago

2.17.16

3 years ago

2.18.0

3 years ago

2.17.15

3 years ago

2.17.14

3 years ago

2.17.13

3 years ago

2.17.12

3 years ago

2.17.11

3 years ago

2.17.10

4 years ago

2.17.5

4 years ago

2.17.4

4 years ago

2.17.3

4 years ago

2.17.2

4 years ago

2.17.1

4 years ago

2.17.0

4 years ago

2.16.0

4 years ago

2.15.0

4 years ago

2.14.0

4 years ago

2.13.1

4 years ago

2.13.0

4 years ago

2.12.2

4 years ago

2.12.1

4 years ago

2.12.0

4 years ago

2.11.4

4 years ago

2.11.3

4 years ago

2.11.2

4 years ago

2.11.1

4 years ago

2.11.0

4 years ago

2.10.3

4 years ago

2.10.1

4 years ago

2.10.2

4 years ago

2.10.0

4 years ago

2.7.0

4 years ago

2.6.0

4 years ago

2.5.2

4 years ago

2.5.1

4 years ago

2.5.0

4 years ago

2.4.1

4 years ago

2.4.0

4 years ago

2.3.6

4 years ago

2.3.5

4 years ago

2.3.4

4 years ago

2.3.3

4 years ago

2.3.2

4 years ago

2.3.1

4 years ago

2.2.2

4 years ago

2.2.1

4 years ago

2.1.4

4 years ago

2.1.3

4 years ago

2.1.5

4 years ago

2.1.2

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.7

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.1-alpha.132

4 years ago

2.0.1-alpha.131

4 years ago

2.0.1-alpha.130

4 years ago

2.0.1-alpha.129

4 years ago

2.0.1-alpha.127

4 years ago

2.0.1-alpha.126

4 years ago

2.0.1-alpha.119

4 years ago

2.0.1-alpha.118

4 years ago

2.0.1-alpha.117

4 years ago

2.0.1-alpha.116

4 years ago

2.0.1-alpha.115

4 years ago

2.0.1-alpha.114

4 years ago

2.0.1-alpha.113

4 years ago

2.0.1-alpha.111

4 years ago

2.0.1-alpha.110

4 years ago

2.0.1-alpha.112

4 years ago

2.0.1-alpha.109

4 years ago

2.0.1-alpha.108

4 years ago

2.0.1-alpha.107

4 years ago

2.0.1-alpha.106

4 years ago

2.0.1-alpha.105

4 years ago

2.0.1-alpha.104

4 years ago

2.0.1-alpha.101

4 years ago

2.0.1-alpha.99

4 years ago

2.0.1-alpha.98

4 years ago

2.0.1-alpha.97

4 years ago

2.0.1-alpha.96

4 years ago

2.0.1-alpha.95

4 years ago

2.0.1-alpha.90

4 years ago

2.0.1-alpha.89

4 years ago

2.0.1-alpha.88

4 years ago