-
Notifications
You must be signed in to change notification settings - Fork 400
Data Driven Testing #117
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
I think this makes sense (the testing part), and think in this context a feature branch sounds fine. I'd caution though that we should build these tests alongside the existing test suite for now, and merge in regularly, rather than have a super-long-lived development branch. |
Pushed the solution into Changes:
|
By mistake, I have pushed into 'master' instead of 'tests' branch. I deeply apologize. I suggest to revert to commits 2394855 or b1993e0. Current state: All tests now pass. At least on my computer. Errors reported by TravisCI:
CircleCI fails as well. I am not able to resolve these issues. |
CircleCI always fails, its just pushing docs. the failure is just that there are no tests, so thats ok. TravisCI installs the packages in the install_requires in setup.py, but thats not appropriate for unittest2, just add that directly into the install.sh script in ci_scripts directory. on (2), not sure. On (3), not sure. Do you have tracebacks for either of them? |
The issues with TravisCI were caused by the used versions of dependencies (my computer was using different versions than TravisCI). I reconfigured TravisCI to use the oldest versions specified in requirements.txt. But it turned out that BinaryEncoder does not work with pandas < 0.20.0rc1. Overview of the changes: Former minimal requirements:
Former versions used by TravisCI:
Current minimal requirements:
Current versions used by TravisCI:
If older versions of libraries have to be supported, BinaryEncoder must be modified. Currently, TravisCI reports only one error:
|
The last issue in TravisCI was resolved by removing a * import. Now I get it why everyone says not to use * imports... @wdm0006, will you take care of CircleCI? |
CircleCI is failing during
Knowing nothing better, I would suggest to check |
I'll take a look at this, thanks for the investigation work @janmotl |
I was thinking about applying data driven testing (ddt).
Why ddt:
test_encoders
contains a lot of copy-pasted codetest_estimators
already loops over all encodersBut of course, there are disadvantages:
Example of the code.
Questions:
The text was updated successfully, but these errors were encountered: