Skip to content

Add StreamData tests to authtoken library #2

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Add StreamData tests to authtoken library #2

wants to merge 7 commits into from

Conversation

igalic
Copy link

@igalic igalic commented Jan 25, 2018

start replacing (or enhancing) our existing tests with property tests!

igalic added 7 commits August 29, 2018 17:13
thanks to the helpful people of the community, we now have a working
property test:
  https://elixirforum.com/t/how-to-create-a-custom-streamdata-generator/11935/3
generally, bind() is the way to create custom generators. But I couldn't
figure this out from the documentation!
Maybe it'll get fixed by elixir 1.7 :D
…ests

setup being an ExUnit macro is only called once, so we pull its body
into an extra function which we can call when needed.

We've discovered that `async: true` does nothing for ExUnitProperties,
so one of the tests is commented out for now.

We've also split the use-case driven unit test into a better property
test shape
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.

1 participant