-
Notifications
You must be signed in to change notification settings - Fork 166
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
improve ergonomics of test execution #771
Comments
@scgkiran , can you or someone on the team pick up the first two items. I think the third is more complicated to get right. |
For item 2, let's make it so if the test fails against baselines, it reports the new baselines versus the old and the file that should be updated if the baselines are wrong. |
For item 3, my thinking has historically been that we update the code so it prints out some kind of "coverage file" that codecov understands so we can use codecov capability for determining baselining, etc rather than having to build that part in github actions ourselves. Would love it if someone was excited to pick that up! |
For item 2, raised PR |
For item 1: Now pytest is part of PR workflow. Based on PR workflow, requirements.txt will look like
@vbarua can you try this? if this works, try running the tests in same terminal. |
Using that as a base, I was able to get the tests running locally. I've added some additional Python configurations to the build to make this more repeatable for future userss in #781 |
The test format implementation is difficult to work with for a number of reasons.
Cannot Run Coverage Code Locally
Attempting to run
locally results in errors like
even with then antlr4 runtime available
As a result I cannot test changes locally AND because this is included as a pre-commit hook, not of my commits are able to use the hooks.
Adding Tests Requires Mucking With Coverage Asserts
When trying to fix the lints in #769 as a result of me adding coverage to existing tests, I have to muck with some of the numbers in
substrait/tests/test_extensions.py
Lines 10 to 38 in 2d8b1b6
Desired State
In order of increasing opinionatedness
The text was updated successfully, but these errors were encountered: