Skip to content
S

SpeckJS

Comment Driven Development

#6349in Developer Tools
0In stores

Description

SpeckJS is a tool for comment-driven development in JavaScript. You write plain comments above a function that describe example inputs and e…

Highlights

  • Write test cases as plain comments next to your code
  • Generates full test spec files from those comments
  • npm module plus grunt and gulp plugins
  • Helps add unit tests to existing projects
  • Source code hosted on GitHub

Ratings & Reviews

No ratings yet

Be the first to rate SpeckJS.

People also visit

S

Spearmint

Testing, simplified. || An inclusive

Developer Tools
Launch
M

momentic-spec

Improve code correctness using Momentic specs in the feature development process

AI Skills
Get
J

Jsdoc

An API documentation generator for JavaScript

Developer Tools
Launch
S

spec-driven-implementation

Drive a spec-first workflow for substantial features

AI Skills
Get
N

Nightwatch.js

Write efficient and straightforward end-to-end tests in Node.js

Developer Tools
Launch
J

Jest

Delightful JavaScript Testing

Developer Tools
Launch

SpeckJS FAQ

What is SpeckJS?

SpeckJS is a JavaScript tool that turns comments in your code into test spec files, so you can write tests in comments next to the function they cover.

How do I install it?

Run npm install speckjs --save in your project directory. If you use grunt or gulp, install the grunt-speckjs or gulp-speckjs plugin instead and enable it in your Gruntfile or gulpfile.

What does a comment look like?

A comment starts with a marker such as // test followed by a function name, and each // # line gives an input and the expected result, for example sum(1, 2) == 3.

Who is it for?

Developers starting test-driven development on a new JavaScript project, or adding unit tests to an existing one.

Where is the source code?

The project is hosted on GitHub at github.com/speckjs/speckjs.

What are the best SpeckJS alternatives?

Popular alternatives to SpeckJS include Spearmint, Jsdoc and Nightwatch.js. See all SpeckJS alternatives

Developer Stuff

Badges