NorfairKing / sydtest

A modern testing framework for Haskell with good defaults and advanced testing features.
113 stars 25 forks source link

Tests fail on empty configuration file #53

Closed L7R7 closed 1 year ago

L7R7 commented 2 years ago

When using a configuration file, the tests fail when the file is empty:

Failed to parse yaml file
<....>/.sydtest.yaml
with error:
Aeson exception:
Error in $: parsing Configuration failed, expected Object, but encountered Null
While parsing file: <....>/.sydtest.yaml

I'm not sure if this is a bug or intended behaviour, but it's at least a bit surprising. I stumbled over this when trying different settings and commenting out different lines, and a file with all lines commented out leads to the same result as an empty file.

NorfairKing commented 1 year ago

Broken as intended. An empty yaml file is not a valid empty object.