Removes TestNG as it wasn't reporting all of the tests correctly. Adds Ant as a dependency and uses it to run the JUnit tests so that tests are output in a way that Jenkins understands.
Change-Id: Ie98358476cebe94f233e687195a0fced8723a878
TestNG generates xml reports that Jenkins can use, JUnit does not without
Ant or Maven.
To run the tests, deploy the Jar and run:
/usr/local/frc/JRE/bin/java -jar wpilibJavaIntegrationTests-0.1.0-SNAPSHOT.jar -junit -testclass edu.wpi.first.wpilibj.test.TestSuite
Change-Id: I9e8a7dcab775f9c5ad1905afa798cd9191e25438
The version numbers for several maven plugins were unspecified before, which
caused a bunch of warnings before.
Change-Id: I7e2e05ccf3e2f10b24010576eb78192e9d891120
Refactors the MotorEncoderTest to make use of the parameterized testing framework
Adds a test for the Preferences Class
Updates the TiltPanCameraTest to work
Makes the TimerTest use math for long values
Adds a Button Test to Test the internal Button
Speeds up the FakeCounterSource/FakeEncoderSource to decrease test time
Moves the AbstractComsSetup Block to a static method so that it only runs once
Updates the logging.properties class so that tests are quieter
Change-Id: I70b39f34122e6398f406a63e6ef04cde9fbe95ef
Modifies where the tilt-pan camera gets instantiated so that it can be used for multiple tests
Adds a test for counters
Updates the TestBench and TestSuite to reflect the physical changes to the board
Adds a test on the Digital Cross Connections
Adds a test on the counter to see if they are working properly
Increases the reset time on the TiltPan Fixture to allow it to calibrate correctly
Fixes the wasReset flag being calculated with a bitshift instead of using boolean algebra.
Adds/Updates Integration Tests
Introduces java.util.logging to the test framework to allow for easier debugging
Fully tests all DIO/Counter/Encoder features
Pulls in Command Tests from the old testing framework
Updates the build.xml to run the Ant Compiler with 1.7 if Java 1.8 is installed
Change-Id: I43d85054be393ef448643c1d35558cfa99749c99
This is the first commit to add the WPILibJ integration test framework.
This creates a project called wpilibJavaIntegrationTests, which is will
create testing framework when running the maven package target. This
framework will need to have the TestBench.java file updated to match
the testing harness set up at WPI. Tests must currently be run manually.
Change-Id: I09fe0278580751e813af591c15b9079360089987