Registry / testing / sclevine-spec

sclevine-spec

JSON →
library1.4.0gogounverified

A simple testing framework for Go with BDD-style syntax.

go get github.com/sclevine/spec
INSTALL
IMPORT
SIG · SCLEVINE-SPEC
S
sclevine-spec
testinggov1.4.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

spec
✓ github.com/sclevine/spec

Define and run a BDD test suite.

package main import ( "testing" "github.com/sclevine/spec" "github.com/sclevine/spec/report" ) func TestMyFeature(t *testing.T) { suite := spec.New("my feature", spec.Report(report.Terminal{})) suite("should work", func(t *testing.T) { // test code }) suite.Run(t) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.4.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Resources
sclevine-spec — go get sclevine-spec · libregistry