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

Improve db benchmarks with pytest #38

Merged
merged 27 commits into from
Apr 30, 2020
Merged

Conversation

alecandido
Copy link
Member

@alecandido alecandido commented Apr 27, 2020

New pytest setup:

  • move ParentTest in a conftest.py to make it an autoimported fixture
    • give it a better name, both to class and the instances inside the test functions
  • insert some test levels, such that everything can be run through pytest
    • we can use custom marks: pytest.mark.<custom>
    • put a 'workflbow level' for running on GitHub
    • put a 'quicktest level' or 'local level' for running locally
  • enrich ParentTest API
    • add a small navigator to show thoeries/observables, cache/logs
      • we can also present them in a pager, there is a python module able to output content in a pager, as easy as using print() function
      • list all table entries in a quick form (just the id and relevant fields/comment), pretty print content
      • maybe add quick query support, maybe not

Not a priority

  • add test dependencies in setup.py
    • update workflows consistently
  • separate commit workflow from merge workflow

@alecandido alecandido added enhancement New feature or request test Add or improve tests labels Apr 27, 2020
@felixhekhorn
Copy link
Contributor

closes #39

@felixhekhorn felixhekhorn linked an issue Apr 30, 2020 that may be closed by this pull request
@felixhekhorn felixhekhorn merged commit 50dbbf4 into master Apr 30, 2020
@felixhekhorn felixhekhorn deleted the benchmarks/db-with-pytest branch April 30, 2020 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request test Add or improve tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Further on benchmarks management
2 participants