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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@skills17/stryker-helpers

v1.0.0

Published

Provides Stryker helpers for usage in a skills competition environment.

Downloads

3

Readme

skills17/stryker-helpers

This package provides Stryker helpers for usage in a skills competition environment. It includes:

  • Custom output formatter

Table of contents

Installation

Requirements:

  • Node 18 or greater

To install this package, run the following command:

npm install @skills17/stryker-helpers

It is suggested to add the following npm scripts:

"scripts": {
"test": "skills17-stryker run",
"test:json": "skills17-stryker run --json"
},

This will provide the following commands:

  • npm test - Run all tests once and show a nice output with the awarded points (useful for the competitors to see their points)
  • npm run test:json - Run all tests once and get a json output (useful for automated marking scripts)

Points can be awarded for coverage of conditionals and deductions for number of mutants survived. If any test fails in normal execution, no points will be awarded.

Usage

A config.yaml file needs to be created that contains some information about the task. It should be placed in the root folder of your task, next to the package.json file.

See the @skills17/task-config package for a detailed description of all available properties in the config.yaml file.

CLI

As seen in the installation instructions, the skills17-stryker command is available.

It is a thin wrapper around the stryker run command.

All arguments to the command will be forwarded to stryker so Stryker can be used exactly the same way if this package wouldn't be installed.

Additionally, the following new arguments are available:

  • --json output the test result with scored points in json to standard out

Scoring

The generated test names are in the following format:

[file key]-[mutant name]

The file key is the file name being tested with the extension and src/ removed. Path separators are replace with .. If multiple mutants with the same name are generated, any surviving mutant will make the test fail.

Extra tests

With skills17/stryker-helpers there are no extra tests needed.

License

MIT