Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1016 Bytes

README.md

File metadata and controls

39 lines (27 loc) · 1016 Bytes
description
A General Library for Easily Writing FRC Code developed by FRC Team 5907

Introduction

Installation

Open your WPILib project in the command line and cd into a util package with the following tree {parentProject}\src\main\java\frc\robot\ and run the following command: git submodule add https://github.com/CCShambots/ShamLib.git

Unit Testing

To run unit tests in a robot project from the shamlib tests, add the following to your build.gradle:

task testShamLib(type:Exec) {
workingDir 'src/main/java/frc/robot/ShamLib/test'
commandLine 'cmd', '/c', 'copyFiles.bat'
}

task deleteShamLibTests(type:Exec) {
workingDir 'src/main/java/frc/robot/ShamLib/test'
commandLine 'cmd', '/c', 'clearFiles.bat'
}

if(project.hasProperty("shamLib")) {
test.mustRunAfter(testShamLib)
deleteShamLibTests.mustRunAfter(test)
}

Perform a gradle sync

Then create the following gradle task: ![img.png](test gradle task.png)

Place all your tests in /Shamlib/test/