Show HN: Dungeon Coverage – Unit testing as a dungeon crawler

Each level is a JS function turned into a dungeon. if/else = forking paths, loops = corridors, try/catch = parallel chambers.

You forge test inputs as weapons, drag them into parameter slots, and run. Your hero walks the code path. Gems = covered statements. 100% = level complete.

Six levels, from simple branches to async functions with stubs.

Play: https://arvindrajnaidu.github.io/dungeon-coverage/ Source: https://github.com/arvindrajnaidu/dungeon-coverage

Built with PIXI.js, Istanbul for coverage, and [maineffectjs](https://github.com/arvindrajnaidu/maineffect) for isolated function execution.

2 points arvindrajnaidu 8 months ago 0 comments

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton