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

Chore embed crummy-test in crummy #34

Merged

Conversation

gonzalo-bulnes
Copy link
Collaborator

Hi @zachinglis ! Yesterday, taking a look at Crummy I read what you had written in the Crummy-test about not having found a satisfactory way to test your gem from inside. I also read some posts you wrote about learning and teaching, and I liked them.

A few weeks ago, I saw an example app embedded into a gem (TBK) and I found that quite clean. I liked the idea, some aspects of some gems just can't be tested without an app. The example app becomes part of the documentation or part of the test suite and can be maintained as so. Debugging also becomes a lot less painful without the need to bump versions for any change.

If you hadn't seen this done before, here is an example, I hope it'll help you.

Note: this commit can be reverted safely.
Note: crummy-test@421da01b7f21ef0ad8b7200aa4add17291ab0e2b
See https://github.com/zachinglis/crummy-test
You may want to use a distinct gemset from that of the gem. I do.
Note: this commit can be reverted safely.
This is what makes the example app a good test app.
The gem README is written in markdown.
Mainly to keep example/Gemfile.lock under version control.
See http://gembundler.com/ Gemfile.lock-related section

Note: if you really don't want that, this commit can be reverted safely.
Note: I did this to check I didn't break anything before opening
a pull request. This commit can be reverted safely.
@andrew
Copy link
Contributor

andrew commented Mar 4, 2013

Looks good, thanks so much!

I'll also add you as a contributor to the project

andrew added a commit that referenced this pull request Mar 4, 2013
…-crummy

Chore embed crummy-test in crummy
@andrew andrew merged commit 3ac0e44 into zachinglis:master Mar 4, 2013
@gonzalo-bulnes
Copy link
Collaborator Author

Hi @andrew , glad that was useful, thanks for the push access!

@zachinglis
Copy link
Owner

@gonzalo-bulnes Seriously appreciated :) Something I've wanted to do for a while.

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.

3 participants