Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hermione-test-filter

Package Overview
Dependencies
Maintainers
5
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hermione-test-filter

plugin for filtering tests specified in json-file

  • 0.5.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
5
Weekly downloads
 
Created
Source

hermione-test-filter

Plugin for hermione to filter tests specified in json-file.

Install

npm install hermione-test-filter

Configuration

  • enabled [Boolean] (optional, false by default) - enable/disable the plugin.
  • inputFile [String] (optional, hermione-filter.json by default) - path to file with tests to run.
  • filterTestsByCode [String|RegExp|Function] (optional, null by default) - filtering tests by their code and hooks.

Usage

With inputFile

  • Require plugin in your hermione config file:
plugins: {
    'hermione-test-filter': {
        enabled: true,
        inputFile: 'some/file.json'
    }
}
  • Input file format:
[
    {
        "fullTitle": "some-title",
        "browserId": "some-browser"
    }
]

With filterTestsByCode

Works only with hermione@>=3.5.0.

  • Use plugin for filtering tests by their code:
plugins: {
    'hermione-test-filter': {
        enabled: true,
        // run all tests with assertView
        filterTestsByCode: 'assertView',
        // or
        filterTestsByCode: (testSrc) => {
            return testSrc.includes('assertView');
        }
    }
}
  • Use plugin for filtering tests by their code from input file:
plugins: {
    'hermione-test-filter': {
        enabled: true,
        // run all tests with assertView from input file
        inputFile: 'some/file.json',
        filterTestsByCode: 'assertView'
    }
}
  • Run plugin with cli option for filtering tests by their code:
npx hermione --filter-tests-by-code assertView

Keywords

FAQs

Package last updated on 03 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc