All Projects → volument → Baretest

volument / Baretest

Licence: mit
An extremely fast and simple JavaScript test runner.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Baretest

Public
Repository for wallaby.js questions and issues
Stars: ✭ 662 (+81.87%)
Mutual labels:  jest, tdd, mocha, bdd, test-runner
tropic
🍍 Test Runner Library
Stars: ✭ 29 (-92.03%)
Mutual labels:  tap, mocha, jest, test-runner, test-framework
Karma
Spectacular Test Runner for JavaScript
Stars: ✭ 11,591 (+3084.34%)
Mutual labels:  tdd, mocha, bdd, test-runner
Mocha
☕️ simple, flexible, fun javascript test framework for node.js & the browser
Stars: ✭ 20,986 (+5665.38%)
Mutual labels:  tdd, mocha, bdd, test-framework
Ava
Node.js test runner that lets you develop with confidence 🚀
Stars: ✭ 19,458 (+5245.6%)
Mutual labels:  tdd, test-framework, test-runner, tap
xv
❌ ✔️ zero-config test runner for simple projects
Stars: ✭ 588 (+61.54%)
Mutual labels:  mocha, jest, tdd, minimalist
bdd-for-c
A simple BDD library for the C language
Stars: ✭ 90 (-75.27%)
Mutual labels:  tdd, bdd, test-framework
Catch2
A modern, C++-native, test framework for unit-tests, TDD and BDD - using C++14, C++17 and later (C++11 support is in v2.x branch, and C++03 on the Catch1.x branch)
Stars: ✭ 14,330 (+3836.81%)
Mutual labels:  tdd, bdd, test-framework
Bandit
Human-friendly unit testing for C++11
Stars: ✭ 240 (-34.07%)
Mutual labels:  tdd, bdd, test-framework
Jasmine Matchers
Write Beautiful Specs with Custom Matchers for Jest and Jasmine
Stars: ✭ 552 (+51.65%)
Mutual labels:  jest, tdd, bdd
Should Enzyme
Useful functions for testing React Components with Enzyme.
Stars: ✭ 41 (-88.74%)
Mutual labels:  tdd, mocha, bdd
Nspec
A battle hardened testing framework for C# that's heavily inspired by Mocha and RSpec.
Stars: ✭ 242 (-33.52%)
Mutual labels:  tdd, mocha, bdd
Istanbuljs
monorepo containing the various nuts and bolts that facilitate istanbul.js test instrumentation
Stars: ✭ 656 (+80.22%)
Mutual labels:  jest, mocha, tap
Lightbdd
BDD framework allowing to create easy to read and maintain tests.
Stars: ✭ 195 (-46.43%)
Mutual labels:  tdd, bdd, test-framework
Snap Shot It
Smarter snapshot utility for Mocha and BDD test runners + data-driven testing!
Stars: ✭ 138 (-62.09%)
Mutual labels:  tdd, mocha, bdd
Enzyme
JavaScript Testing utilities for React
Stars: ✭ 19,781 (+5334.34%)
Mutual labels:  jest, mocha, test-runner
Testdeck
Object oriented testing
Stars: ✭ 206 (-43.41%)
Mutual labels:  jest, tdd, mocha
Testfx
MSTest V2 framework and adapter
Stars: ✭ 391 (+7.42%)
Mutual labels:  tdd, test-framework, test-runner
Expect More
Curried Type Testing library, and Test Matchers for Jest
Stars: ✭ 124 (-65.93%)
Mutual labels:  jest, tdd, bdd
chai-exclude
Exclude keys to compare from a deep equal operation with chai expect or assert.
Stars: ✭ 33 (-90.93%)
Mutual labels:  mocha, tdd, bdd

Baretest is an extremely simple JavaScript test runner. It has a tiny footprint, near-instant performance, and a brainless API. It makes testing tolerable.

How Baretest fits on the testing landscape

Install

npm install --save-dev baretest

With pnpm

pnpm install --save-dev baretest

Links

Documentation

... Getting started

... API reference

... FAQ

Why Baretest?

We constantly hit CMD + B on Sublime Text to test a function we are actively working on. We do this all the time, sometimes hundreds of times a day. With Jest, each of these runs would take seconds, but Baretest runs under 100ms.

A typical setup in Sublime Text Comparing Jest vs Baretest

Another reason for building Baretest was to have an extremely simple API. Typically we only use test() and the Node's built-in assert.equals() methods to run our tests. We've never needed automatic re-ordering, file watchers, "mocking" or "snapshotting".

const test = require('baretest')('My app'),
  assert = require('assert'),
  app = require('my-app')

test('add user', async function() {
  const user = await app.addUser('[email protected]')
  assert.equals(user.name, 'Test')
})

test('reject duplicate emails', async function() {
  await assert.rejects(async function() {
    await app.addUser('[email protected]')
  })
})

// ...

!(async function() {
  await test.run()
})()

We think a good test runner stays out of your way. We want to focus on the task at hand and not deal with the complexities of testing. We don't want to commit to a massive framework that dictates our work.

License

Copyright 2020 OpenJS Foundation and contributors. Licensed under MIT.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].