Workshopper Adventure Test

raw JSON →
1.2.0 verified Sat Apr 25 auth: no javascript maintenance

A CLI-based test system for NodeSchool workshopper-adventures, supporting workshopper-adventure, workshopper, and substack adventure tutorials. It runs exercises by feeding CLI arguments and validating output against expected pass/fail criteria. Current stable version is 1.2.0 with infrequent releases (last was 2017). Key differentiator: tests tutorials at the CLI level, not programmatically, making it agnostic to the tutorial's internal implementation. Requires a specific test directory structure under the tutorial's root. Not actively maintained.

error Error: Cannot find module 'workshopper-adventure-test'
cause Missing local installation
fix
Run npm install --save-dev workshopper-adventure-test
error TypeError: Cannot read property 'forEach' of undefined
cause No test folder or empty test structure
fix
Create a test directory with exercise subfolders containing valid_*.js/invalid_*.js files
gotcha Test file names must follow pattern valid_<number>.js or invalid_<number>.js; other names are ignored.
fix Rename test files to match required pattern.
gotcha Exercise names in test folder must be simplified versions of the names returned by `<tutorial> list`. Mismatches cause tests to be skipped.
fix Run `<tutorial> list` and match folder names exactly (case-sensitive), removing non-alphanumeric characters.
gotcha The package is not actively maintained; last release in 2017. May not work with newer Node.js versions (expect issues on Node >=12).
fix Use in Node.js 10 or earlier; consider forking or using alternative test approach.
npm install workshopper-adventure-test
yarn add workshopper-adventure-test
pnpm add workshopper-adventure-test

Add npm test script to run workshopper-adventure-test, then create test folder with exercise subfolders containing valid_*.js and invalid_*.js files.

{
  "scripts": {
    "test": "workshopper-adventure-test"
  }
}