Registry / testing / workshopper-adventure-test

workshopper-adventure-test

JSON →
library1.2.0jsnpmunverified

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.

npm install workshopper-adventure-test
INSTALL
IMPORT
SIG · WORKSHOPPER-ADVENT
W
workshopper-adventure-test
testingjavascriptv1.2.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

main
npm run test (runs workshopper-adventure-test via package.json script)
No programmatic API; used only as CLI tool.

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" } }
workshopper-adventure-test --version
Debug
Known issues
gotchaTest file names must follow pattern valid_<number>.js or invalid_<number>.js; other names are ignored.
fix
Rename test files to match required pattern.
affects: >=1.0.0
gotchaExercise 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.
affects: >=1.0.0
gotchaThe 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.
affects: >=1.2.0
Errors
Common errors & fixes
Error: Cannot find module 'workshopper-adventure-test'
Missing local installation
fix
Run `npm install --save-dev workshopper-adventure-test`
TypeError: Cannot read property 'forEach' of undefined
No test folder or empty test structure
fix
Create a `test` directory with exercise subfolders containing valid_*.js/invalid_*.js files
Upgrade
Version history
1.2.0latest on npm
Audit
Dependencies
workshopper-adventureoptionalPrimary target tutorial framework; needed for understanding exercise structure
Agent activity
9 hits · last 30 days
node
8
Resources
workshopper-adventure-test — npm install workshopper-adventure-test · libregistry