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
[gk-test] Run case #1446
[gk-test] Run case #1446
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1446 +/- ##
==========================================
+ Coverage 51.64% 51.87% +0.23%
==========================================
Files 78 80 +2
Lines 7288 7429 +141
==========================================
+ Hits 3764 3854 +90
- Misses 3172 3206 +34
- Partials 352 369 +17
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
This lets us read Suites from the disk. Per open-policy-agent#1446, we aren't doing Assertions for pre-alpha so I haven't added those annotations yet. Signed-off-by: Will Beason <willbeason@google.com>
This lets us read Suites from the disk. Per open-policy-agent#1446, we aren't doing Assertions for pre-alpha so I haven't added those annotations yet. Signed-off-by: Will Beason <willbeason@google.com>
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.
LGTM
This lets us read Suites from the disk. Per open-policy-agent#1446, we aren't doing Assertions for pre-alpha so I haven't added those annotations yet. Signed-off-by: Will Beason <willbeason@google.com>
e68a8c8
to
5f3234c
Compare
This lets us read Suites from the disk. Per open-policy-agent#1446, we aren't doing Assertions for pre-alpha so I haven't added those annotations yet. Signed-off-by: Will Beason <willbeason@google.com>
A first pass at printing output similar to what is shown for "go test". Sadly we can't just use testing.T without asking users to write their own unit tests. There is no accessible printer that automatically does this formatting for us, so we must replicate it. This does not print output as tests are run even though the result output appears to suggest this. In the future we will do so, but as we don't yet run tests that would be premature. The point here is to make the output consistent with "go test". Signed-off-by: Will Beason <willbeason@google.com>
Add logic for running individual test cases. Now that we've compiled the constraints, all we need to do is Review() the specified objects and compare the Results with what the user specified. This PR does not add Assertion functionality - we'll do that for alpha, not pre-alpha. Also add unit tests that verify we are, in fact, running the test cases. Signed-off-by: Will Beason <willbeason@google.com>
This lets us read Suites from the disk. Per open-policy-agent#1446, we aren't doing Assertions for pre-alpha so I haven't added those annotations yet. Signed-off-by: Will Beason <willbeason@google.com>
* Print output of tests similar go go test A first pass at printing output similar to what is shown for "go test". Sadly we can't just use testing.T without asking users to write their own unit tests. There is no accessible printer that automatically does this formatting for us, so we must replicate it. This does not print output as tests are run even though the result output appears to suggest this. In the future we will do so, but as we don't yet run tests that would be premature. The point here is to make the output consistent with "go test". Signed-off-by: Will Beason <willbeason@google.com> * Run test cases Add logic for running individual test cases. Now that we've compiled the constraints, all we need to do is Review() the specified objects and compare the Results with what the user specified. This PR does not add Assertion functionality - we'll do that for alpha, not pre-alpha. Also add unit tests that verify we are, in fact, running the test cases. Signed-off-by: Will Beason <willbeason@google.com> * Add json annotations for Suites This lets us read Suites from the disk. Per #1446, we aren't doing Assertions for pre-alpha so I haven't added those annotations yet. Signed-off-by: Will Beason <willbeason@google.com>
Depends on #1445.
Add logic for running individual test cases. Now that we've compiled the
constraints, all we need to do is Review() the specified objects and
compare the Results with what the user specified.
This PR does not add Assertion functionality - we'll do that for alpha,
not pre-alpha.
Also add unit tests that verify we are, in fact, running the test cases.