All Projects → osteele → cl-spec

osteele / cl-spec

Licence: other
BDD for Common Lisp

Programming Languages

common lisp
692 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to cl-spec

kheera-testrunner-android
BDD Framework for Android
Stars: ✭ 18 (+0%)
Mutual labels:  testing-tools, bdd-framework
bat
Gherkin based DSL for testing HTTP APIs via Cucumber.JS
Stars: ✭ 30 (+66.67%)
Mutual labels:  testing-tools, bdd-framework
Goconvey
Go testing in the browser. Integrates with `go test`. Write behavioral tests in Go.
Stars: ✭ 6,868 (+38055.56%)
Mutual labels:  testing-tools, bdd-framework
mockcpp
Two C/C++ testing tools, mockcpp and testngpp.
Stars: ✭ 40 (+122.22%)
Mutual labels:  testing-tools
toradocu
Toradocu - automated generation of test oracles from Javadoc documentation
Stars: ✭ 39 (+116.67%)
Mutual labels:  testing-tools
vPAV
viadee Process Application Validator
Stars: ✭ 47 (+161.11%)
Mutual labels:  testing-tools
regression-testing
Regression testing in Elm!
Stars: ✭ 22 (+22.22%)
Mutual labels:  testing-tools
kekiri
A .NET framework that supports writing low-ceremony BDD tests using Gherkin language
Stars: ✭ 19 (+5.56%)
Mutual labels:  bdd-framework
lucky flow
Automated browser tests for web applications. Similar to Ruby's Capybara.
Stars: ✭ 50 (+177.78%)
Mutual labels:  testing-tools
Orion-Stress-Tester
A simple, efficient and accurate stress tester, support HTTP, WebSocket and TCP
Stars: ✭ 32 (+77.78%)
Mutual labels:  testing-tools
test-real-styles
(test-)framework agnostic utilities to test real styling of (virtual) dom elements
Stars: ✭ 37 (+105.56%)
Mutual labels:  testing-tools
php.autotest
autotest for php written in php
Stars: ✭ 19 (+5.56%)
Mutual labels:  testing-tools
go-test-report
Captures go test output and parses it into a single self-contained HTML file.
Stars: ✭ 68 (+277.78%)
Mutual labels:  testing-tools
tressa
Little test utility
Stars: ✭ 18 (+0%)
Mutual labels:  testing-tools
pywinauto recorder
A record-replay tool to automate GUI via pywinauto
Stars: ✭ 48 (+166.67%)
Mutual labels:  testing-tools
ctest
A simple portable C test runner
Stars: ✭ 17 (-5.56%)
Mutual labels:  testing-tools
heel-gun
Test HTTP servers for robustness to arbitrary requests
Stars: ✭ 17 (-5.56%)
Mutual labels:  testing-tools
effcee
Effcee is a C++ library for stateful pattern matching of strings, inspired by LLVM's FileCheck
Stars: ✭ 76 (+322.22%)
Mutual labels:  testing-tools
CodeBaseManager
Multi-langage CLI tool to manage your code base
Stars: ✭ 11 (-38.89%)
Mutual labels:  testing-tools
client-java
Asynchronous client for Java-based agents
Stars: ✭ 17 (-5.56%)
Mutual labels:  testing-tools

CL-SPEC

This library is an implementation of Ruby rspec for behavioral testing, in Common Lisp.

Concepts

Specifications are an alternative to the standard unit test syntax (SUnit, JUnit, and their ports).

A specification is a list of examples. Each example has a name, and a body. The body can contain any lisp code, as well as forms that begin with =>.

A specification is run to produce a list of results: which examples passed, and which failed (and with what condition, although for now the condition text is not very useful).

See the Lisp files in the examples directory for some very simple examples of specifications.

Loading

(asdf:oos 'asdf:load-op :cl-spec)

Usage

There are three ways to run a spec.

First, by evaluating it (from the command line, or in an editor window). This runs the specification, and returns a short string counting the number of tests that succeeded, or listing the names of the tests that failed. The intent is that this will be useful to look at in your minibuffer or on your console.

Second, by applying RUN-SPECIFICATION to a path name (STRING or PATHNAME): (run-specification "examples/failing-spec.lisp")

This prints a text summary of the pass/fail status to standard output, like so:

.FF..

1)
"should fail" FAILED
Condition EXPECTATION-NOT-MET was signalled.
/users/osteele/documents/projects/cl-spec/examples/failing-spec.lisp

2)
"should also fail" FAILED
Condition EXPECTATION-NOT-MET was signalled.
/users/osteele/documents/projects/cl-spec/examples/failing-spec.lisp

Finished in 0.0050000004 seconds

5 examples, 2 failures

Finally, the :FORMAT keyword can be used to create an HTML file instead:

(run-specification "examples/plus-spec.lisp" :format 'html)

The HTML files in the examples directory were thus produced.

License

This package is Copyright 2007 by Oliver Steele. It is available under the terms of the MIT License.

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].