Skip to content

CCShambots/ShamLib

Repository files navigation

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/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •