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

More unit tests #515

Merged
merged 20 commits into from
Jul 17, 2017
Merged

Conversation

weixuanfu
Copy link
Contributor

@weixuanfu weixuanfu commented Jun 28, 2017

More unit tests for driver and a small unit test for _warpped_cross_eval_score to increase code coverage.

Update: fix a issue about no FileNotFoundError in Python 2.*

@coveralls
Copy link

Coverage Status

Coverage increased (+3.7%) to 90.59% when pulling dede2ba on weixuanfu2016:more_unit_tests into 9f65998 on rhiever:development.

tpot/driver.py Outdated
return scoring_func

def main():
def main(args):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change will break the CLI.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CLI issue is fixed in the commits below

@coveralls
Copy link

Coverage Status

Coverage increased (+3.7%) to 90.59% when pulling 72212b1 on weixuanfu2016:more_unit_tests into 9f65998 on rhiever:development.

@coveralls
Copy link

Coverage Status

Coverage increased (+3.9%) to 90.844% when pulling 8672442 on weixuanfu2016:more_unit_tests into 9f65998 on rhiever:development.

@coveralls
Copy link

Coverage Status

Coverage increased (+3.9%) to 90.844% when pulling f8ae352 on weixuanfu2016:more_unit_tests into 9f65998 on rhiever:development.

@coveralls
Copy link

Coverage Status

Coverage increased (+4.1%) to 91.032% when pulling 29050da on weixuanfu2016:more_unit_tests into 9f65998 on rhiever:development.

@@ -0,0 +1,35 @@
# -*- coding: utf-8 -*-
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rename this file to test_config_bad.py.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would cause a error during unit tests since it is not in right format as python codes. Check this link

Copy link
Contributor

@rhiever rhiever Jun 28, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's confusing. The CI systems are running that file? They shouldn't be?

Copy link
Contributor Author

@weixuanfu weixuanfu Jun 28, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nosetests -s -v checks all the .py files in tests folder.

@coveralls
Copy link

Coverage Status

Coverage increased (+4.08%) to 91.003% when pulling c6ed906 on weixuanfu2016:more_unit_tests into 9f65998 on rhiever:development.

@coveralls
Copy link

Coverage Status

Coverage increased (+4.3%) to 91.242% when pulling 55af5e5 on weixuanfu2016:more_unit_tests into 9f65998 on rhiever:development.

@coveralls
Copy link

Coverage Status

Coverage increased (+4.3%) to 91.242% when pulling 1f0024f on weixuanfu2016:more_unit_tests into 9f65998 on rhiever:development.

@coveralls
Copy link

Coverage Status

Coverage increased (+4.5%) to 91.394% when pulling 0ab737f on weixuanfu2016:more_unit_tests into 9f65998 on rhiever:development.

@coveralls
Copy link

Coverage Status

Coverage increased (+4.7%) to 91.62% when pulling 145eaa8 on weixuanfu2016:more_unit_tests into 9f65998 on rhiever:development.

@weixuanfu weixuanfu merged commit 145eaa8 into EpistasisLab:development Jul 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants