-
Notifications
You must be signed in to change notification settings - Fork 81
Pre-validate config #219
Copy link
Copy link
Open
Labels
ergonomicsMaking Kaocha delightful to work with and people more efficientMaking Kaocha delightful to work with and people more efficientonboardingMake Kaocha easier for people or projects new to itMake Kaocha easier for people or projects new to it
Metadata
Metadata
Assignees
Labels
ergonomicsMaking Kaocha delightful to work with and people more efficientMaking Kaocha delightful to work with and people more efficientonboardingMake Kaocha easier for people or projects new to itMake Kaocha easier for people or projects new to it
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
StatusShow more project fields
Candidate
Certain configuration mistakes still cause rather unhelpful error messages, because we validate the config after normalizing it, so errors during normalization aren't cleanly handled.
Case in point, I just accidentally did this
#kaocha/v1 {:tests {:id :cljs :type :kaocha.type/cljs}}Which should have been
#kaocha/v1 {:tests [{:id :cljs :type :kaocha.type/cljs}]}Which gave me this error
This one's a bit annoying because we do have specs for config maps, but they only apply after normalization, adding defaults, renaming non-qualified keys etc. We'll need seperate specs (or a different validation strategy) if we want to validate the raw tests.edn.