npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@open-xchange/codecept-plugin-filter

v0.0.3

Published

A plugin for CodeceptJS that removes skipped tests from the test suite

Downloads

361

Readme

@open-xchange/codecept-plugin-filter

A plugin for CodeceptJS that removes skipped tests from the test suite.

By default, CodeceptJS leaves skipped tests in the test suite, and will include them in the test results report. This plugin removes skipped tests from the test suite entirely. Additionally, the plugin will skip and remove more tests specified either in the plugin options or in specific environment variables.

The following tests will be removed from the test suite:

  • Tests explicitly marked as skipped in source code (Scenario.skip and Scenario.todo).
  • Tests with titles matching specific patterns passed into the plugin.
  • Tests with titles matching specific patterns contained in environment variables:
    • Tests matching the pattern in SKIP_TESTS will always be skipped.
    • Tests matching the pattern in SKIP_TESTS_CI will be skipped when running in CI mode.
    • Tests matching the pattern in SKIP_TESTS_LOCAL will be skipped when not running in CI mode.
    • The names of all environment variables can be customized via plugin options.

Installation

npm install -D @open-xchange/codecept-plugin-filter
# or
pnpm add -D @open-xchange/codecept-plugin-filter
# or
yarn add -D @open-xchange/codecept-plugin-filter

Usage

Add the plugin to the CodeceptJS plugins configuration (the object key filter can be changed):

// codecept.config.ts
export const config: CodeceptJS.MainConfig = {
  plugins: {
    filter: {
      require: '@open-xchange/codecept-plugin-filter',
      enabled: true,
      // plugin options:
      skipTests: ['@tag1', 'ISSUE-42'],
      skipTestsEnvVar: 'CUSTOM_VAR',
      skipTestsCIEnvVar: 'CUSTOM_VAR_CI',
      skipTestsLocalEnvVar: 'CUSTOM_VAR_LOCAL',
    },
  }
}

Add TypeScript type-safety for the plugin options by explicitly narrowing the configuration object using the satisfies keyword:

// codecept.config.ts
import type filterPlugin from '@open-xchange/codecept-plugin-filter'
export const config: CodeceptJS.MainConfig = {
  plugins: {
    filter: {
      require: '@open-xchange/codecept-plugin-filter',
      enabled: true,
      // ...
    } satisfies filterPlugin.Config,
  }
}

Plugin Options

skipTests

  • Type: string | readonly string[] | RegExp
  • Default: []

Additional tests to be skipped and removed from the test suite. Can be one or more strings (literal substring matches) or a regular expression. Test tags can be selected by using a leading @ sign, e.g. '@some-tag'.

skipTestsEnvVar

  • Type: string | null
  • Default: 'SKIP_TESTS'

The name of the environment variable containing a regular expression pattern for test titles to be skipped and removed from the test suite. Test tags can be selected by using a leading @ sign, e.g. '@some-tag'.

Can be set to null to skip parsing an environment variable.

skipTestsCIEnvVar

  • Type: string | null
  • Default: 'SKIP_TESTS_CI'

The name of the environment variable containing a regular expression pattern for test titles to be skipped and removed from the test suite when running in CI mode only (when environment variable CI is set). Test tags can be selected by using a leading @ sign, e.g. '@some-tag'.

Matching tests will be filtered additionally to the tests selected with the environment variable from option skipTestsEnvVar.

Can be set to null to skip parsing an environment variable.

skipTestsLocalEnvVar

  • Type: string | null
  • Default: 'SKIP_TESTS_LOCAL'

The name of the environment variable containing a regular expression pattern for test titles to be skipped and removed from the test suite when not running in CI mode (when environment variable CI is not set).

Matching tests will be filtered additionally to the tests selected with the environment variable from option skipTestsEnvVar.

Can be set to null to skip parsing an environment variable.