Test framework for Gleam

Package Version Hex Docs

Introduction

Showtime is a test framework for Gleam. It can be used in the same way as Gleeunit and intends to support the same API so that migration can be done by simply changing some imports.

In addition to supporting the same features as Gleeunit showtime add some more features:

Showtime also adds a new way to specify tests with related meta-data which gives the following capabilities:

How to use

In your main test-file, replace:

gleeunit.main()

with:

showtime.main()

Its also possible to replace the import:

import gleeunit/should

with:

import showtime/tests/should

This should improve the test-report since showtime can make more assumption on the data passed when failing an assertion.

Installation

gleam add showtime

and its documentation can be found at https://hexdocs.pm/showtime.

Name

The name “showtime” is a nod to the Gleam test framework “gleeunit” which surely must have something to do with the TV series 📺.

Search Document