-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ Add new command to run YAML tests #166
Conversation
ca5cdec
to
bba8c38
Compare
8512eae
to
3b6e1e8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! Thank you for these changes.
logFile.Close() | ||
continue | ||
} | ||
analysisParams := tests[0].TestCases[0].AnalysisParams |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something to future-proof if the spec changes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't worry about this, if the spec changes, the whole logic of the runner will be affected, so we will have to handle that anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a lot of code, so I hope I didn't miss something, but things generally look good to me.
rulesSummary.passed += 1 | ||
} | ||
} | ||
fmt.Fprintln(w, strings.Repeat("-", 60)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if there is a utility to help output formatting like this?
d5338f6
to
ffe8b34
Compare
Signed-off-by: Pranav Gaikwad <[email protected]>
Signed-off-by: Pranav Gaikwad <[email protected]>
Signed-off-by: Pranav Gaikwad <[email protected]>
Signed-off-by: Pranav Gaikwad <[email protected]>
Signed-off-by: Pranav Gaikwad <[email protected]>
Signed-off-by: Pranav Gaikwad <[email protected]>
Signed-off-by: Pranav Gaikwad <[email protected]>
Signed-off-by: Pranav Gaikwad <[email protected]>
657d07f
to
8963dbd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR still looks good to me
Signed-off-by: Pranav Gaikwad <[email protected]>
8963dbd
to
2207b03
Compare
testing
that defines APIs and implementations for writing and running YAML rules tests.I have tried to group commits to make it a little bit easier to review. See individual commit messages for details, let me know if you have any questions.