eWert-Online / OSnap

OSnap is a snapshot testing tool, which mainly focuses on speed and ease of use.
https://ewert-online.github.io/OSnap/
152 stars 2 forks source link

chore: rewrite exception based failures to results #15

Closed eWert-Online closed 2 years ago

eWert-Online commented 2 years ago

This is mainly done, so we can attach more info to the errors and even enhance them on the way up through the program.

For example: The error message for a selector which isn't found now looks like

CDP failed to run some commands. Message was: 
A node with the selector ".spaceasd" could not be found. 

also we do now attach the file path when a parsing error happened in a config file.

Your config is in an invalid format 
Tried to parse "test/yaml/tests/solar-system.osnap.yaml" 
"url" is required but not provided!

Fixes #12