-
Notifications
You must be signed in to change notification settings - Fork 35
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
The default tests do not call many methods that they should #70
Comments
It will only cover the things that your tests cover. The default tests aren't meant to be comprehensive, if you need more coverage then you should create custom tests. |
Also, |
See https://github.com/robotpy/examples/blob/master/sample/tests/basic_test.py for an example of how to setup custom tests. I'm open to suggestions and PR's for increasing the default test coverage, but it seems like a rather hard problem -- every robot is a bit different, how would the tests know what to cover? |
I don't really understand how the testing system works, but shouldn't
(in basic_tests.py) at least call |
It should call For a command based robot, |
Testing does not appear to run the methods that it should be. Running the simulator does call the methods, and appropriately logs that it ran |
…lures - Will prevent future issues like #70
Looks like Upgrade pyfrc and your issue should be resolved. |
Running
python robot.py coverage test
does not cover many important methods, such asrobot.AutonomousInit()
,robot.TeleopInit()
, and theexecute()
method of commands that are the defaults of subsystems, although their__init__()
methods are called.The text was updated successfully, but these errors were encountered: