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

Migrate testing to pytest #189

Open
3 tasks
schmoelder opened this issue Dec 3, 2024 · 0 comments · May be fixed by #192
Open
3 tasks

Migrate testing to pytest #189

schmoelder opened this issue Dec 3, 2024 · 0 comments · May be fixed by #192
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@schmoelder
Copy link
Contributor

schmoelder commented Dec 3, 2024

Currently, we're still using standard library unittest for our test suite.
However, pytest offers a lot of advanced functionality for testing (e.g. improved fixtures) and is simpler to write.

Also, pytest can simply run standard library unit tests so migrating does not require rewriting all tests (although we should consider this in the medium term.

To do

  • Call pytest in the CI/CD
  • Add slow flags to tests that we don't always want to run (e.g. test_optimizer_behaviour)
  • Skip tests when ax module is not found

See also #88, #144

@schmoelder schmoelder added the enhancement New feature or request label Dec 3, 2024
@daklauss daklauss linked a pull request Dec 3, 2024 that will close this issue
3 tasks
@schmoelder schmoelder added this to the v0.11.0 milestone Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants