stylish-haskell
stylish-haskell copied to clipboard
Provide mechanism for golden tests
In order to easier maintain the project we should consider providing golden test mechanism.
Proposal
- there would be dedicated
goldenfolder in tests - in that folder for each feature you are trying to test you would provide:
featurename-input.hsfeaturename-output.hsfeaturename-config.yaml
- The mechanism would run
stylish-haskellagainst provided input file and configuration and compare . results with output file
Benefits:
- This should simplify testing process (matter of adding yet another golden test)
- We could expect community to attach golden files whenever they are requesting a feature or informing about a bug ("this is the source that i have, this is the output i would like to see"). Issue than would not be considered resolved until the golden test provided is not added to
goldenfolder and that test is not passing
Very much in favor!