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

Write unit tests #4

Open
vasudevanv opened this issue Nov 2, 2016 · 5 comments
Open

Write unit tests #4

vasudevanv opened this issue Nov 2, 2016 · 5 comments

Comments

@vasudevanv
Copy link
Member

Testing will include 3 different components

  1. Testing for data
  2. Testing for the classifier
  3. Testing for the pipeline

Possible test frameworks to use: pytest, unittest, nose

@vasudevanv
Copy link
Member Author

We need to have a good dummy test dataset that needs to be small enough to run tests quickly but large enough to cover corner cases.

@dhimmel
Copy link
Member

dhimmel commented Nov 2, 2016

It might make sense to create a notebook in machine-learning that generates these test cases. I'm willing to do this, but if anyone else wants to claim the task, go ahead.

@vasudevanv
Copy link
Member Author

That is a good idea. If you could generate the test data, I can take a shot at writing the tests. I have been playing around with pytest, and it's pretty neat. I think we should use it.

@jessept
Copy link
Collaborator

jessept commented Nov 8, 2016

Pytest sounds like a good choice. I read in this article that nose (one of the modules we were discussing before) does not seem to get along very well with the logging module.

@jessept
Copy link
Collaborator

jessept commented Nov 16, 2016

We are going to split out the unit testing into 2 pieces.
@vasudevanv will work on unit tests for data.py and figshare.py
@jessept will work on unit tests for analysis.py and utils.py

@vasudevanv is using pytest so we will continue on that front.

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

3 participants