Skip to content
This repository has been archived by the owner on Jan 30, 2021. It is now read-only.

purduecsbridge/barista

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Barista

Note: This project has been retired. Percolator is a new grading framework that builds off of Barista's best aspects, while adding new functionality. Barista will continue to be hosted here, but will no longer receive updates. See #18 for more information.

build javadoc

Barista is a grading package for Java Gradescope assignments. It is meant to make the development and maintenance of programming assignments easier for courses using Java. How easy is it?

import org.junit.Test;
import edu.purdue.cs.barista.TestCase;
import edu.purdue.cs.barista.TestSuite;

@TestSuite
public class HelloWorldTests {

  @Test
  @TestCase(name = "Hello test", points = 50.0)
  public void testHello() {
    // Test code here
  }
  
  @Test
  @TestCase(name = "Goodbye test", points = 50.0)
  public void testGoodbye() {
    // Test code here
  }

}

That's a test suite written using Barista. Pretty simple, right? Call the GradescopeGrader.run() method to run your test suites and automatically print the results in JSON.

Want more customization? Feel free to make your own test runner and create a new GradescopeListener object to run the tests.

Barista is built off of Tim Kutcher's JGrade, so there is even more customization to be had if you'd like to use some of JGrade's more advanced features.

Installation

Instructions on how to add Barista to your Maven project can be found here.

Contributing

Pull requests/issues are always welcome.

License

Licensed under the MIT License.