···11# gleeunit
2233-A simple test runner for Gleam, using EUnit on Erlang.
33+A simple test runner for Gleam, using EUnit on Erlang and a custom runner on JS.
4455-Documentation is available on [HexDocs](https://hexdocs.pm/gleeunit/index.html).
55+[](https://hex.pm/packages/gleeunit)
66+[](https://hexdocs.pm/gleeunit/)
6777-## Usage
88-99-Add this package to your Gleam project.
108119```sh
1212-gleam add gleeunit --dev
1010+gleam add gleeunit@1 --dev
1311```
1414-1515-And then call the `gleeunit.main` function from your test main function.
1616-1712```gleam
1813// In test/yourapp_test.gleam
1914import gleeunit
+1-1
gleam.toml
···11name = "gleeunit"
22-version = "1.5.1"
22+version = "1.6.0"
33licences = ["Apache-2.0"]
44description = "A simple test runner for Gleam, using EUnit on Erlang"
55repository = { type = "github", user = "lpil", repo = "gleeunit" }
+1-1
src/gleeunit_ffi.erl
···77 lists:map(fun list_to_binary/1, Results).
8899run_eunit(Tests, Options) ->
1010- case eunit:test(Tests, Options) of
1010+ case eunit:test({timeout, 60, Tests}, Options) of
1111 ok -> {ok, nil};
1212 error -> {error, nil};
1313 {error, Term} -> {error, Term}