input-output-hk / foliage

🌿 Foliage is a tool to create custom Haskell package repositories, in a fully reproducible way.
MIT License
42 stars 9 forks source link

There's no tests :disappointed: #7

Closed andreabedini closed 1 year ago

michaelpj commented 1 year ago

I was thinking about this on a bike recently. I think we could write some decent property tests fairly easily. The key would be to have an intermediary representation of a foliage repository as a timestamped series of events (as discussed elsewhere). Then:

andreabedini commented 1 year ago

I like property testing but what I'd like like to start with is some sort of golden/integration testing at the cli level. I want to be able to test (and define) the behaviour of the whole thing from the user POV. I looked around for tooling to do this but I haven't quite found what I am looking for. I guess I can put toghether something on top of tasty-golden.

In any case I have no intention of blocking anyone from contributing any kind of testing :joy: