Skip to content

Commit

Permalink
With the new structure, we don't need separate test types
Browse files Browse the repository at this point in the history
  • Loading branch information
virtuald committed Jan 5, 2015
1 parent 54b27df commit ce083d6
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 112 deletions.
22 changes: 22 additions & 0 deletions lib/pyfrc/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
'''
These generic test modules can be applied to :class:`wpilib.iterativerobot.IterativeRobot`
and :class:`wpilib.samplerobot.SampleRobot` based robots. To use these, add the
following to a python file in your tests directory::
from pyfrc.tests import *
'''

# import basic tests
from .basic import (
test_autonomous,
test_disabled,
test_operator_control,
test_practice
)

# import common test types
from .docstring_test import test_docstrings

# simple-specific test types
from .fuzz_test import test_sample_fuzz as test_fuzz

Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
The primary purpose of these tests is to run through your code
and make sure that it doesn't crash. If you actually want to test
your code, you need to write your own custom tests to tease out
the edge cases
the edge cases.
To use these, add the following to a python file in your tests directory::
from pyfrc.tests import *
The tests are identical for :class:`wpilib.iterativerobot.IterativeRobot`
and :class:`wpilib.samplerobot.SampleRobot` based robots.
'''

import math
Expand Down
20 changes: 0 additions & 20 deletions lib/pyfrc/tests/iterative_robot/__init__.py

This file was deleted.

69 changes: 0 additions & 69 deletions lib/pyfrc/tests/iterative_robot/basic.py

This file was deleted.

20 changes: 0 additions & 20 deletions lib/pyfrc/tests/sample_robot/__init__.py

This file was deleted.

0 comments on commit ce083d6

Please sign in to comment.