gnl/ghostwheel.specs

A collection of third-party library specs for Clojure written in Ghostwheel's gspec syntax


Keywords
clojure, clojure-spec, clojure-specs, clojurescript, instrumentation, spec, testing
License
EPL-2.0

Documentation

ghostwheel.specs

ghostwheel.specs license

This is a repository for Clojure(-Script) specs written using the Ghostwheel gspec syntax, including specs for most of clojure.core.

It’s the Clojure version of Definitely Typed.

ℹ️
They can be used for run- and test-time instrumentation with clojure.spec to easily catch incorrect function calls in your code by requiring the corresponding ghostwheel.specs.* namespace and using Ghostwheel’s extrumentation feature or just calling s/instrument directly.
⚠️
Instrumenting all of clojure.core as a whole is not recommended at this point because things will likely break.

PRs are welcome – please add your spec namespaces to the contrib package. Their names should correspond to the namespaces they are speccing, so for example ghostwheel.contrib.cuerdas.core. If the library works on both Clojure and ClojureScript, make sure your specs do as well.

Copyright (c) 2018 George Lipov
Licensed under the Eclipse Public License 2.0