-
Notifications
You must be signed in to change notification settings - Fork 15
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 Test Codes #54
Add Test Codes #54
Conversation
I'm a bit concerned about adding minif2f to the unit testing pipeline. Building mathlib takes a while. If it is just mathlib we could Can you set it up so that instead of using an example skeleton project with mathlib as a dependency, the minif2f tests directly run with project root pointing to Mathlib? This way we can leverage |
You might approve this PR to run the actions, or check it here https://github.com/Lean-zh/PyPantograph/pull/2/checks |
@pytest.mark.advance | ||
def test_load_theorem(minif2f_server: Server, minif2f_test: DataFrame, minif2f_valid: DataFrame): | ||
"""Comprehensive test for loading multiple theorems. | ||
use pytest -m "not advance" to skip this test. |
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.
use pytest -m "not advance"
instead to skip some tests if it takes too long.
Can I push onto your dev branch? |
Yes, please, I think you have the write permissions on this Details about the tests:
|
Why did you delete |
I removed https://github.com/Lean-zh/PyPantograph/actions/runs/12732921282/job/35488677656 ![]() |
The lock file should not be removed. If having the lock file causes your unit tests to fail something's seriously messed up with your setup. |
I tried not to add your review work, so I committed the lock file from your branch instead. It was a bit of a clumsy attempt, though. What I meant is that this file is machine-generated and doesn’t need to be tracked in version control. It’s better to let each environment generate its own lock file as needed. |
This is a non-essential feature, and it feels like we could be losing some development efficiency by getting caught up in these details. As mentioned before, I’m excited to see people willing to contribute to open-source projects. I’ve learned a lot from the Open Source Promotion Plan, and I hope to contribute to Lean's projects through lean-zh. Perhaps we could focus on something more impactful for this project to start with. |
I think this is a valuable contribution but we need to refactor out all the clutter e.g. the experiments out |
Add Test Codes
Hi @lenianiva, could you review the test setup in this PR?
Changes Made
The other PR's tests passed successfully.Some of the statements need fixing, check the LSP here as commented before.Added pytest framework, migrate unitests from
server.py
totest_server.py
You can run the test suite with:
Next Steps
Add GitHub workflow for automated testingpytest tests -m error
For error cases, we could fix in a new PR to simplify the review process?
Please let me know if you'd like any further adjustments.