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

Tests factories and ex machina #396

Merged
merged 17 commits into from
Dec 7, 2020
Merged

Tests factories and ex machina #396

merged 17 commits into from
Dec 7, 2020

Conversation

flmel
Copy link
Contributor

@flmel flmel commented Nov 12, 2020

Description

work in progress
Added ex_machina in order to DRY tests did rework the accounts tests

Issue

#316 and #60

Screenshots

For frontend updates, please include a screenshot.

Checklist

  • Everything passes when running mix test
  • Ran mix format
  • No frontend compilation warnings

@flmel flmel changed the title Tests facories and ex machina Tests factories and ex machina Nov 12, 2020
@reichert621
Copy link
Collaborator

looks reasonable so far @flmel! thanks :)

@flmel flmel marked this pull request as ready for review December 7, 2020 14:21
@flmel flmel requested a review from reichert621 December 7, 2020 14:21
@reichert621
Copy link
Collaborator

looks great so far @flmel! it's quite long so it might take me some to review all of it 😅 but looking forward to merging your updates 🎉

@flmel
Copy link
Contributor Author

flmel commented Dec 7, 2020

looks great so far @flmel! it's quite long so it might take me some to review all of it 😅 but looking forward to merging your updates 🎉

the only issue would be is that it blocks further backend tasks since adding more tests would cause catch22

@reichert621
Copy link
Collaborator

yup good point -- sorry about that! i'll make sure we prioritize this before merging any new backend tests 👍

@reichert621 reichert621 merged commit 50804b0 into papercups-io:master Dec 7, 2020
Copy link
Collaborator

@reichert621 reichert621 left a comment

Choose a reason for hiding this comment

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

amazing work on this @flmel! 🚀 🚀 🚀

simplifies tests, and also speeds them up 😄 (i think it went from ~30s before to now around ~10s on my laptop!)

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.

2 participants