-
Notifications
You must be signed in to change notification settings - Fork 0
Testing changes to the application
This page outlines the process for testing changes made to the application. The process of testing changes is complicated by the need to run certain changes with particular hardware (e.g. a physical Raspberry Pi, the thrusters, a particular sensor).
If the changes require no special hardware to test, the tests can be run on your local development machine. In this scenario, create a JUnit test case for your changes and run them via gradle test
.
Running tests* on the Raspberry Pi is a multi-part process.
* Tests in this context referring to any changes that do not belong in the main source tree.
- Build a test JAR via
gradle testJar
- Copy the JAR from
build/libs/Rov-1.0.0-tests.jar
to the Raspberry Pi - Run your test class via
java -cp Rov-1.0.0-tests.jar $mainClassName
As a convenience, you can define the following shell functions:
copy () { sshpass -p raspberry scp build/libs/Rov-1.0.0-tests.jar pi@$1:~ ; }
run () { local pi=$1; shift; sshpass -p raspberry ssh pi@$pi sudo java -cp Rov-1.0.0-tests.jar $@ ; }
Example usage:
copy 192.168.88.13 && run 192.168.88.13 com.easternedgerobotics.rov.integration.PololuMaestroQuickTest 1550
This wiki and the project's README file contain a lot of information, take your time and read both. Read the CONTRIBUTING.md
file in the project before opening a pull request or an issue.
© Eastern Edge Robotics - www.easternedgerobotics.com
Introductions
- Home
- 1000ft overview
- Design rationale
- Configuration
Getting things done
- Quick start
- Getting Started/Workspace Setup
- Git-Cheatsheet
- Vagrant environment
- Connecting to the ROV network
- Walkthrough: Adding a feature
- Testing changes to the application
- Deploying the application
- Running the application topside
- Running the Picamera video feed
Development
Hardware and misc.