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

1.10 Breaks automatic naming with Quick testing Framework #691

Open
BoOelkers opened this issue Dec 22, 2022 · 0 comments
Open

1.10 Breaks automatic naming with Quick testing Framework #691

BoOelkers opened this issue Dec 22, 2022 · 0 comments

Comments

@BoOelkers
Copy link

With the addition of CleanCounterBetweenTestCases in 1.10 to support multiple runs of tests popular testing framework Quick no longer works.

Quick lets users specify test cases declaratively and creates multiple tests from the same function. So when I specify multiple snapshots within one spec() function the counterMap gets reset inbetween each one breaking the automatic naming.

I understand we want this feature to support the new feature of re running tests, but would it be possible to give users some more flexibility as to when the counterMap gets reset or the ability to turn it off?

Environment

  • swift-snapshot-testing: 1.10
  • Xcode: 14.2
  • OS: iOS 16
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

No branches or pull requests

1 participant