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 unit tests #20

Open
drewkeller opened this issue Sep 6, 2014 · 1 comment
Open

Add unit tests #20

drewkeller opened this issue Sep 6, 2014 · 1 comment

Comments

@drewkeller
Copy link

PiPresents is complicated enough that I think it would benefit from unit testing. At least in some of the main classes.

I don't have much experience with python, but I found the standard python library has unit testing in it:
https://docs.python.org/2/library/unittest.html

I don't have unit testing in all of my projects, but I'm very glad for it in the ones that I do. I can make changes, add features, etc. and be confident that I didn't break anything in the process.

@KenT2
Copy link
Owner

KenT2 commented Sep 9, 2014

I have written tests for some of the major modules when developing them but I have never found them useful when the module is integrated into Pi Presents. This is because most of the unit tests use a variety of values for profile data which can best be done when the module is running with the rest of Pi Presents as a test harness. In the past the test profiles have morphed into the example profiles that get published.
What I am thinking of doing for [pipresents-gapless] is to maintain and publish the set of test profiles.

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

No branches or pull requests

2 participants