-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Update Tests with fetchers to use assumeTrue() #12803
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
Comments
@jnchin314 Good that you picked this up. However, |
What about using this annotation for checking for keys available? Its repeatable and I can apply it to classes or methods
|
I didn't know about this. Sounds great! |
I noticed that the BuildInfo.java has default values for some of the keys. Should we just try and use these keys for the test fetchers? |
/assign-me |
👋 Hey @jnchin314, thank you for your interest in this issue! 🎉 We're excited to have you on board. Start by exploring our Contributing guidelines, and don't forget to check out our workspace setup guidelines to get started smoothly. In case you encounter failing tests during development, please check our developer FAQs! Having any questions or issues? Feel free to ask here on GitHub. Need help setting up your local workspace? Join the conversation on JabRef's Gitter chat. And don't hesitate to open a (draft) pull request early on to show the direction it is heading towards. This way, you will receive valuable feedback. Happy coding! 🚀 ⏳ Please note, you will be automatically unassigned if there is not a (draft) pull request within 14 days (by 07 April 2025). |
This only helped a bit in reducing the number of failed tests. I think there are other reasons tests fail (AKA hosts failling, or 401/403 issues). Unfortunately those issues seem out of scope to fixing missing api keys. |
Unfortunately the PR is now showing fetcher tests failures. Perhaps trying to use the BuildInfo.java default keys was not a good idea? |
Yes. Its better. Note that these keys mostly won't work, becaus they have a very strong limit - see https://devdocs.jabref.org/code-howtos/fetchers.html |
Is your suggestion for improvement related to a problem? Please describe.
When running the tests, many fetchers would fail, which might make it difficult to sift out when actual tests are failing for valid reasons. It would be better to only run fetcher tests with the assumption they are able to actually fetch information.
Describe the solution you'd like
@koppor described using assumeTrue() to help ignore some of the tests that would fail due to acceptable fetch errors.
Additional context
Maybe something like this would be better to add for tests involving fetchers.
https://devdocs.jabref.org/code-howtos/fetchers.html
The text was updated successfully, but these errors were encountered: