u/xzhan

Gleedoc, a doc test library for Gleam

Gleedoc, a doc test library for Gleam

Hi folks, I have been building a doc test library called gleedoc, and it's mostly done. The latest version now is 0.6.0, and all the features I planned for the 1.0 release are in place. I still need to clean up the docs and do some refactoring before bumping to 1.0, but I think it's in a pretty usable shape now.

If you are interested, give it a try and let me know what you think!

P.S. Shout-out to testament (another doc test library) and Benjamin Wireman for working out some of the design tricks regarding gleam test :)

u/xzhan — 1 day ago

How can I run some test generation step in gleeunit?

Hi folks, I am working on a doc test package for Gleam, and for integration testing purposes I'd like to include a test clean up and generation step before I start executing the tests.

Right now, I am trying to use simplefile to delete the old tests and generate new ones before gleeunit.main(). However, if there are any updates, they won't be included in the current round. They will be included in the next round, but that would be quite confusing... Is it possible in gleeunit to have something like a before hook?

P.S. Self-plug: https://hex.pm/packages/gleedoc It's generally usable, but docs are a bit lacking and there are some issues I'd like to tackle. But yeah, feel free to give it a try.

u/xzhan — 10 days ago