Idris2Doc : Evince.Spec

Evince.Spec

(source)

Definitions

describe : String->Specma () ->Specma ()
  Group related specs under a label.

Visibility: export
context : String->Specma () ->Specma ()
  Alias for `describe` - use with "when"/"with" phrasing.

Visibility: export
it : Applicativem=>String-> Lazy (TestResult ()) ->Specma ()
  Define a test case with pure expectations. The body is lazy, so it is
evaluated when the test runs, not when the spec is built.

Visibility: export
itIO : HasIOm=>String->IO (TestResult ()) ->Specma ()
  Define a test case with IO-based expectations.

Visibility: export
itWith : Applicativem=>String-> (a->TestResult ()) ->Specma ()
  Define a test case that receives the resource.

Visibility: export
itIOWith : HasIOm=>String-> (a->IO (TestResult ())) ->Specma ()
  Define an IO test case that receives the resource.

Visibility: export
itLoc : Applicativem=>TTImp->String-> Lazy (TestResult ()) ->Elab (Specma ())
  Define a test with source location captured at the call site.
Pass a dummy quasiquoted value as the first argument:
itLoc `(()) "test name" $ expectation

Visibility: export
itIOLoc : HasIOm=>TTImp->String->IO (TestResult ()) ->Elab (Specma ())
  Define an IO test with source location captured at the call site.
itIOLoc `(()) "test name" $ ioAction

Visibility: export
xit : String-> Lazy (TestResult ()) ->Specma ()
  Mark a test as pending - the body is ignored and not executed.

Visibility: export
xitIO : String-> Lazy (IO (TestResult ())) ->Specma ()
  Mark an IO test as pending - the body is ignored and not executed.

Visibility: export
xdescribe : String->Specma () ->Specma ()
  Mark an entire group as pending - every test in it is reported as
pending and nothing is executed.

Visibility: export
xcontext : String->Specma () ->Specma ()
  Alias for `xdescribe`.

Visibility: export
fit : Applicativem=>String-> Lazy (TestResult ()) ->Specma ()
  Focus a test - when any focused specs exist, only focused ones run.

Visibility: export
fdescribe : String->Specma () ->Specma ()
  Focus an entire group.

Visibility: export
fcontext : String->Specma () ->Specma ()
  Alias for `fdescribe`.

Visibility: export
focus : Specma () ->Specma ()
  Focus every test in the given spec - composes with any test or group
combinator (`itIO`, `itAsync`, `describe`, ...).

Visibility: export