Skip to content

Unit testing#33

Merged
rhempel merged 7 commits intoev3dev:masterfrom
ddemidov:tests
Oct 30, 2015
Merged

Unit testing#33
rhempel merged 7 commits intoev3dev:masterfrom
ddemidov:tests

Conversation

@ddemidov
Copy link
Copy Markdown
Member

See ev3dev/ev3dev-lang#112.

This adds two fake nodes for MediumMotor and InfraredSensor and adds some tests for the classes.

@rhempel, in order to enable Travis-CI integration for the repo, you need to go to https://travis-ci.org/, login with your github account, go to account settings and flip the switch on the rhempel/ev3dev-lang-python repo there. This should preferably be done before merging this pull request.

@ddemidov
Copy link
Copy Markdown
Member Author

A better way would be to create fake sys/class in the ev3dev-lang repo, but I could not come up with a way to do that and have ability to just run ./tests/api_tests.py both locally and on Travis-CI.

@ddemidov
Copy link
Copy Markdown
Member Author

One possible way to do this would be to move the fake /sys/class folder to a separate repo and add it as a submodule here. Then all bindings could benefit.

rhempel added a commit that referenced this pull request Oct 30, 2015
@rhempel rhempel merged commit 90d0853 into ev3dev:master Oct 30, 2015
@rhempel
Copy link
Copy Markdown
Member

rhempel commented Oct 30, 2015

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants