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

Add tests, basic DB seeding, and email package #67

Closed
wants to merge 2 commits into from
Closed

Add tests, basic DB seeding, and email package #67

wants to merge 2 commits into from

Conversation

DevanB
Copy link

@DevanB DevanB commented Sep 28, 2015

This biggest part of this PR adds tests for user accounts (Tests - #44) based scenarios including the default user signup, user login, and user recover password functionality in Base.

In order to achieve this xolvio:cucumber, xolvio:email-stub, and meteor add email were added. In addition a new package themeteorchef:test-fixtures was created and added as a local package. themeteorchef:test-fixtures adds a simple fixtures/reset and fixtures/seedData DB functionality.

Other issues this will touch are "Add email package and examples" (#66) by adding the email package and "Seeding" (#56) by adding a custom fixtures/seedData DB function (only adds one user for testing), but does not use Faker. I think I can integrate Faker here if you would like that before releasing this into the wild.

It might be something to think about allowing these tests to be added as a package in the future, so users can choose to have some basic tests or not. Also, this is not using any fancy ES2015 features. I tried to use arrow functions, but cucumber didn't like them. Perhaps the syntax was incorrect, who knows.

Enjoy :)

Feel free to give me a shout on TMC Slack if you have any questions, comments, complains, or praises!

Devan Beitel added 2 commits September 28, 2015 15:17
…d DB). Added xolvio:cucumber, xolvio:email-stub, and email package along with passing tests for user signup, user login, and recover password.
@themeteorchef
Copy link
Owner

Cool, thanks for putting this together :)

Will review this week and add notes.

@DevanB
Copy link
Author

DevanB commented Sep 29, 2015

No sweat. I'm sure I wouldn't have nailed it perfectly the first time :)

@themeteorchef
Copy link
Owner

Hey @DevanB, I'm going to close out this PR for now, but let's chat in Slack on how we can bring it into the latest version.

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