···11# gleeunit
2233-A Gleam project
33+Gleam bindings to the Erlang EUnit test framework.
4455-## Quick start
55+## Usage
6677-```sh
88-gleam run # Run the project
99-gleam test # Run the tests
1010-gleam shell # Run an Erlang shell
77+Add this package to your `gleam.toml` dependencies:
88+99+```toml
1010+[dev-dependencies]
1111+gleeunit = "~> 0.1.0"
1112```
12131313-## Installation
1414+And then call the `discover_and_run_tests` function from your test main function.
1515+1616+```gleam
1717+// In test/yourapp_test.gleam
1818+import gleeunit
1919+2020+pub fn main() {
2121+ gleeunit.discover_and_run_tests()
2222+}
2323+```
14241515-If available on Hex this package can be installed by adding `gleeunit`
1616-to your `gleam.toml` dependencies:
2525+Now any public function with a name ending in `_test` in the `test` directory
2626+will be found and run as a test.
17271818-```erlang
1919-[dependencies]
2020-gleeunit = "~> 0.1.0"
2828+```gleam
2929+pub fn the_universe_test() {
3030+ assert 1 = 1
3131+}
2132```