hermione-tabs-closer

1.0.1 • Public • Published

hermione-tabs-closer

Plugin for hermione to close opened tabs from previous tests in a browser. When your tests are opening a lot of tabs in one session, browser can degrade. So that's why you need to close opened tabs before test execution.

Installation

npm install hermione-tabs-closer

Usage

Plugin has following configuration:

  • enabled (optional) Boolean – enable/disable the plugin; by default plugin is enabled
  • browsers (optional) Regexp - browsers in which tabs should be closed

Also there is ability to override plugin parameters by CLI options or environment variables (see configparser). Use hermione_tabs_closer_ prefix for the environment variables and --hermione-tabs-closer- for the cli options.

Hermione usage

Add plugin to your hermione config file:

module.exports = {
    // ...
    system: {
        plugins: {
            'hermione-tabs-closer': {
                enabled: true,
                browsers: /chrome/
            }
        }
    },
    //...
}

Testing

Run mocha tests:

npm run test-unit

Run eslint codestyle verification

npm run lint

Readme

Keywords

Package Sidebar

Install

npm i hermione-tabs-closer

Weekly Downloads

39

Version

1.0.1

License

MIT

Unpacked Size

5.57 kB

Total Files

7

Last publish

Collaborators

  • j0tunn
  • dudagod
  • sipayrt
  • rostik404
  • xrsd
  • kuznetsovroman