Skip to content

Conversation

@RobertLucian
Copy link
Member

@RobertLucian RobertLucian commented Apr 9, 2021

checklist:

  • self-review
  • run make test and make lint
  • test manually (i.e. build/push all images, restart operator, and re-deploy APIs)

@RobertLucian RobertLucian added the tests Something related to testing label Apr 9, 2021
@RobertLucian RobertLucian self-assigned this Apr 9, 2021
@RobertLucian RobertLucian changed the title Improve the coverage of the e2e test suite Improve the coverage of the e2e test suite [WIP] Apr 9, 2021
Comment on lines +62 to +64
pytest -v test/e2e/tests --env aws --skip-autoscaling --skip-load --skip-long-running
pytest -v test/e2e/tests --env aws -k test_autoscaling
pytest -v test/e2e/tests --env aws -k test_load
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can be summed up to a single command

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would be ideal - and it is possible, but we'd have to create dependencies (within pytest) between the single-request tests and the load/autoscaling tests. There's no point in letting a load test run if the single-request test failed. I saw this plugin https://pytest-dependency.readthedocs.io/en/stable/usage.html that we could use, but from what I read, this only works for tests that sit in the same module.

The simplest next thing is to just create these "dependencies" by separating the pytest command into multiple ones.

@RobertLucian RobertLucian changed the title Improve the coverage of the e2e test suite [WIP] Improve the coverage of the e2e test suite Apr 9, 2021
@RobertLucian RobertLucian merged commit 1e2860d into master Apr 9, 2021
@RobertLucian RobertLucian deleted the internal/tests branch April 9, 2021 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Something related to testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants