Module

Test.MiraculixLite

#runTests

runTests :: TestTree -> Effect StorePath

Run all tests in the test tree

Re-exports from Test.MiraculixLite.Assertion

#assertLt

assertLt :: forall a. Show a => Ord a => a -> a -> Assertion

Asserts that the specified value is lower than another value

#assertGt

assertGt :: forall a. Show a => Ord a => a -> a -> Assertion

Asserts that the specified value is greater than another value

#assertEq

assertEq :: forall a. Show a => Eq a => a -> a -> Assertion

Asserts that the specified actual value is equal to the expected value (with the actual value on the left-hand side).

#assert

assert :: Boolean -> Array String -> Assertion

Asserts that the specified condition holds.

#(@?=)

Operator alias for Test.MiraculixLite.Assertion.assertEq (right-associative / precedence 1)

Re-exports from Test.MiraculixLite.FFI

#StorePath

data StorePath :: Type

Type that describes a path inside the Nix store.

Re-exports from Test.MiraculixLite.TestTree

#TestTree

data TestTree

The main data structure defining a test suite. It consists of individual test cases and properties, organized in named groups which form a tree-like hierarchy.

#testGroup

testGroup :: String -> Array TestTree -> TestTree

Create a named group of test cases or other groups

#testCase

testCase :: String -> Assertion -> TestTree

Turn an Assertion into a test case

Modules