- Notifications
You must be signed in to change notification settings - Fork301
Quick and dirty power assertions today!#1002
bvalyou started this conversation inShow and tell
-
I was jonesing for some better output in my test code and decided to see what I could do with a quick utility // TestUtils.pklfunctionassertEquals(actual, expected):Boolean= actual== expected||throw("assertion failed - expected\(expected) but was\(actual)") // ApplicationTest.pkl...facts { ["Application backend should configure a base (unfinished) application"] { TestUtils.assertEquals(backend.k8sResources.length,6) }}
I'm very pleased with this quality of life improvement - it doesn't clutter the output when the test passes either:
Interested to see what others have done in this area! |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 0 comments
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment