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 unittests to the repo. #4

Open
maxking opened this issue Jun 21, 2017 · 5 comments
Open

Add unittests to the repo. #4

maxking opened this issue Jun 21, 2017 · 5 comments

Comments

@maxking
Copy link
Owner

maxking commented Jun 21, 2017

Also, setup the test runner and CI, probably travis.

@jiteshpabla
Copy link
Contributor

I'll do it, but I don't really understand these things.

@maxking
Copy link
Owner Author

maxking commented Jun 25, 2017

@jiteshpabla Let me add some sample tests to the repo and then maybe you can look at it?

@jiteshpabla
Copy link
Contributor

@maxking Sure.

@emht
Copy link

emht commented Jul 18, 2017

Since it's been long no one picked this issue, I am picking this issue. :)

@maxking
Copy link
Owner Author

maxking commented Jul 19, 2017

https://github.com/maxking/paper-to-git/blob/master/paper_to_git/tests/bin/test_commands.py

This is a very basic test that I added for the paper-git command itself. Might be a little helpful when trying to write tests. There is still a major complication in testing the functions that needs things to be properly initialized.

It would need some sort of fixtures from pytest to initialize paper-git before tests run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants