Skip to content
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

Refactor tests #111

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open

Refactor tests #111

wants to merge 20 commits into from

Conversation

Giulero
Copy link
Collaborator

@Giulero Giulero commented Dec 5, 2024

This PR introduces a refactor of the tests which reduces the amount of files e duplicated code.
In particular - using pytest fixtures - I managed to unify the configuration phase (retrieving model path, setting up idyntree kindyn) in the conftest.py. Here pytest sets up and iterates over two robot models and the two velocity representation (mixed and body fixed). In this way we can test more than one robot model and remove files in which the only difference was the velocity representation.
The ideal case would be to let conftest.py iterate also over the adam interfaces (casadi, jax, torch, numpy, etc), but we need to handle some numerical type conversions. Right now I don't have a clear solution for this and I would leave this for a future PR!

I would also kindly ask our conda experts to check if the modifications introduced in this PR can be armful for the actual conda recipe and deploy.


📚 Documentation preview 📚: https://adam-docs--111.org.readthedocs.build/en/111/

@Giulero Giulero marked this pull request as ready for review December 21, 2024 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants