This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
1.0.0
A testing framework for Elm
version 2.0.0
license MIT
native-modules False
elm-version 0.16.0 <= v < 0.17.0
Tag 2.0.0
Committed At 2016-02-13 05:31:28 UTC
elm-lang/core 3.0.0 <= v < 4.0.0 3.0.0

README

Sloth.elm

elm docs npm package

Sloth is a testing framework for Elm. It is inspired from the Node.js module Mocha.

module MyTest where


import Sloth exposing (..)
import Sloth.Assertion exposing (..)


tests =
  start
    `describe` "description"
      `it` "should pass" =>
        (1 `shouldBe` 1)
      `it` "should fail" =>
        (1 `shouldNotBe` 1)
    `end` 1

Quick start

  1. Get sloth command from npm:
$ npm i -g sloth.elm
  1. Create a folder for test files:
$ mkdir test
  1. And use elm-package to install poying/sloth.elm:
$ cd test
$ elm-package install poying/sloth.elm