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

Force using correct mixin of MockFactory in async/sync tests #451

Merged
merged 2 commits into from
Jul 25, 2022
Merged

Force using correct mixin of MockFactory in async/sync tests #451

merged 2 commits into from
Jul 25, 2022

Conversation

nimatrueway
Copy link
Contributor

@nimatrueway nimatrueway commented Jul 23, 2022

Pull Request Checklist

  • I agree to licence my contributions under the MIT licence
  • I have added copyright headers to new files
  • I have added tests for any changed functionality

Fixes

Fixes #371

Purpose

As been mentioned in README.md the trait AsyncMockFactory should be used with Async*Spec classes otherwise tests will be ignored silently.

This PR enforces this idea further, as users will receive feedback at compile time to help.

@nimatrueway nimatrueway changed the title Force using correct mixin Force using correct mixin of MockFactory in async/sync tests Jul 23, 2022
It is helpful to prevent mistakenly mixing synchronous tests with asynchronous mock-factory and vice versa
@barkhorn
Copy link
Collaborator

very cool, thanks for this PR, could you please confirm that you are happy with this:

  • I agree to licence my contributions under the MIT licence

@barkhorn barkhorn added this to the v5.3.0 milestone Jul 24, 2022
@nimatrueway
Copy link
Contributor Author

very cool, thanks for this PR, could you please confirm that you are happy with this:

  • I agree to licence my contributions under the MIT licence

Gladly done! I just added the checklist to PR's description.

@barkhorn barkhorn merged commit e8ab8f2 into paulbutcher:master Jul 25, 2022
@nimatrueway nimatrueway deleted the force-using-correct-mixin branch July 25, 2022 05:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

ScalaTest Async tests with MockFactory are silently ignored, not documented in QuickStart Guide
3 participants