8000 Allow conditional skip with skip_snapshot_verify by dominikschubert · Pull Request #6731 · localstack/localstack · GitHub
[go: up one dir, main page]

Skip to content

Conversation

dominikschubert
Copy link
Member

Example usage: @pytest.mark.skip_snapshot_verify(condition=lambda: 1 == 1)

The condition always needs to be a callable that will be evaluated to determine if the verification should be skipped or not.

This PR also makes sure that verification of snapshots is never skipped when running with TEST_TARGET=AWS_CLOUD.

@dominikschubert dominikschubert self-assigned this Aug 23, 2022
@dominikschubert dominikschubert temporarily deployed to localstack-ext-tests August 23, 2022 14:32 Inactive
@dominikschubert dominikschubert marked this pull request as ready for review August 23, 2022 14:34
@coveralls
Copy link
coveralls commented Aug 23, 2022

Coverage Status

Coverage decreased (-0.04%) to 91.405% when pulling 50cfda5 on test_snapshot-conditional-skip into 2a9be8c on master.

Copy link
Member
@steffyP steffyP left a comment

Choose a reason for hiding this comment

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

LGTM! 👍 Thanks for adding this feature 🙂

Copy link
Member
@dfangl dfangl left a comment

Choose a reason for hiding this comment

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

LGTM, just a minor nit

Co-authored-by: Daniel Fangl <daniel.fangl@localstack.cloud>
@dominikschubert dominikschubert temporarily deployed to localstack-ext-tests August 23, 2022 16:42 Inactive
@github-actions
Copy link

LocalStack integration with Pro

       3 files  ±0         3 suites  ±0   1h 18m 59s ⏱️ + 3m 50s
1 232 tests ±0  1 191 ✔️ ±0  41 💤 ±0  0 ±0 
1 655 runs  ±0  1 583 ✔️ ±0  72 💤 ±0  0 ±0 

Results for commit 50cfda5. ± Comparison against base commit 2a9be8c.

@dominikschubert dominikschubert merged commit 7a87b5e into master Aug 23, 2022
@dominikschubert dominikschubert deleted the test_snapshot-conditional-skip branch August 23, 2022 22:03
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.

4 participants
0