Go to Post We did the best job we could out there, and unfortunatly we have human limits.. The refs don't catch every penalty, inspectors don't catch every issue, and this year the score keepers won't catch every single ball. - nobrakes8 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 17-02-2016, 18:01
michaelsilver's Avatar
michaelsilver michaelsilver is offline
Registered User
FRC #0246 (Overclocked)
Team Role: Programmer
 
Join Date: Dec 2015
Rookie Year: 2013
Location: Boston
Posts: 1
michaelsilver will become famous soon enough
JUnit + Travis CI comes to FRC!

Here on team 246 Overclocked, we love to follow the best of engineering practices. For software, that means unit testing our code.

For those who are not familiar, unit testing is a way to check "Does this piece of code do what I expect it to do?". The most basic atom (or shall I say "unit") of a unit test is an assertion, usually of the form assertEquals(myFunction(input), myFunctionExpectedOutput). There are lots of resources online on the subject of unit testing, so I won't go in depth here. What we've done is created a template for FRC teams to use JUnit in their projects.

Overclocked is excited to announce that we've set up an awesome way to unit test FRC Java code! Check out our template: https://github.com/246overclocked/fr...junit-template
Follow the instructions in the README to get started!

Features:
  • Automatically run all tests on your computer using ant test
  • Automatically compiles and runs tests with each push to GitHub using Travis CI

In the world where FRC programmers get little time with the robot in the already short build season, this helps programmers avoid the "oops" moments and silly avoidable mistakes before getting access to the robot.

Why this is awesome:
  • Ensures your code compiles
  • Lets you check your logic/math independent of the robot

On Overclocked we love JUnit + Travis CI because we have a large group of students, many of whom are novice programmers, contributing to the robot code. This setup helps us get rid of bugs before we run the code on the robot.

Bugs? Questions? Feature requests? Create an issue, post to this thread! Want to help? Pull requests are welcome!

Shoutout to our early adopters! Other teams who are are having trouble should check out these two issues as they may already answer your questions!

(Note: Overclocked has no affiliation with Travis CI)
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 00:40.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi