-
Notifications
You must be signed in to change notification settings - Fork 34
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
Test Command #236
Test Command #236
Conversation
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.
Looks good in broad strokes, but I think there is a bunch of room to simplify things
cmd/scip/test.go
Outdated
// the type of attribute that this is | ||
kind string |
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.
Please make this an enum, not a string
@varungandhi-src amusingly long delay on this one, but finally got around to make your suggestions Should be ready for another round of reviews! |
testCases := []TestCase{ | ||
{"roles", | ||
autogold.Expect("✓ passes.repro (3 assertions)\n"), | ||
autogold.Expect(`✗ fails-wrong-role.repro |
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.
@matthewnitschke-wk I've added snapshot tests here for checking the output, so that we don't accidentally regress something (earlier, this test was just checking for pass/fail instead of checking the output).
"github.com/stretchr/testify/require" | ||
) | ||
|
||
func TestTestCasesForLine(t *testing.T) { |
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.
@matthewnitschke-wk Thank you for adding this test, it compactly expresses the different kinds of syntax that are available and how they get parsed. Nice!
@matthewnitschke-wk I've cut a new v0.5.0 release with the test subcommand. |
Implements the proposal specified here: #235
Closes #235