Wisp - Runs like a wisp

Runs like a wisp.


A lightweight and fast test framework for Luau

Wisp gives you a chainable suite API, fluent assertions, and plain text reports β€” in a few hundred lines of code with zero dependencies.

local Wisp = require("@wisp")

Wisp.suite("Calculator")
  :action("adds numbers", function()
    Wisp.assume(1 + 1):equalsTo(2)
  end)
  :action("throws on division by zero", function()
    Wisp.assume(function()
      error("divide by zero")
    end):throws()
  end)

Wisp()
Calculator
 βœ“ adds numbers
 βœ“ throws on division by zero

Suites: 1 passed out of 1 total
Tests:  2 passed out of 2 total

Took:   0.11ms

Features

  • Fast β€” 22 suites with 72 tests, all passing in 0.48ms
  • Elegant β€” Chainable syntax that stands out from traditional frameworks
  • Lightweight β€” Zero dependencies, works anywhere Luau runs, ~170 lines total

Getting Started

4 Likes

allat for 1 + 1 = 2??

3 Likes

not just 1+1, you can test anything because its a test framework

1 Like

Because that’s 010 of computers

1 Like

very cool, was looking for something like this a long time ago, with ai being heavily used a good test suite is very important

1 Like

better than having to pull out a principia mathematica i guess

1 Like

@AskWisp I think you’ll like this!

2 Likes

Repository moved to bng - lustre/wisp: A lightweight and fast test framework for Luau - bng: beyond coding. we sleep.