nowfound

Life & fun · September 17, 2015

SpeckJS – Comment Driven Development

SpeckJS – Comment Driven Development launched on September 17, 2015 with 16 votes, #1,483 of 3,463 launches that month and more than 75% of that year's launches. The site was still online in September 2026, 11 years on.

In plain words

SpeckJS is a development tool that converts plain-language comments in JavaScript files into automated test specification files. Developers write comments in their source code, and SpeckJS automatically generates full test specs compatible with frameworks like Tape. The tool integrates with build systems such as Grunt and Gulp, streamlining the test creation process and reducing manual boilerplate coding. It's designed for JavaScript developers seeking to implement comment-driven development practices.

written from the facts on this page · September 2026

From the sources

grunt.initConfig({ speck: { options: { specType: 'tape', specName: '--testSpec', logs: false }, target: { src: ['src/*.js'], dest: 'test/specs/' }, }, }); Run grunt ~ $ grunt speck gulp.task('speck', function() { return gulp.src('./test/fixtures/*.js') .pipe(foreach(function(stream, file) { return stream .pipe(speck({ testFW: 'tape', logs: true, relPath: '../specs/' + path.basename(file.path) })) .pipe(rename({ suffix : '_tapeSpec' })); })) .pipe(gulp.dest('./test/fixtures/specs')); }); Run gulp ~ $ gulp speck var test = require('tape'); var file = require('./yourFile.js'); test('sum function', function(t) { t.plan(1); t.equal(3, file.sum(1,2), 'returns the sum of both params'); t.equal(7,…from speckjs.github.io

Does a similar job

all alternatives →

More life & fun this month

the category →

Source: Show HN post ↗

Launched alongside, September 2015

the whole month →