Giter Site home page Giter Site logo

jacquard's Introduction

Jacquard

Jacquard is a Java autograder developed at Northeastern University with Gradescope integration. It has been used at multiple universities.

Features

  • Static analysis with Checkstyle and PMD.
  • Syntactic analysis using JavaParser
  • Test coverage and cyclomatic complexity measurement with JaCoCo.
  • Unit testing with JUnit 5, including:
    • running staff tests against student code
    • running student tests against
      • student code
      • intentionally buggy staff-written code
      • correct staff-written code

Examples

The best way to learn Jacquard is to review the examples, which include video explanations.

You should start with Jacquard Example 0, which shows how to grade based on Checkstyle, PMD, and JUnit 5 tests.

Jacquard Example 1 adds syntactic analysis based on the parse tree, such as whether students use certain language features and methods.

Jacquard Example 2 demonstrates:

  • Changing the default configuration values:
    • visibility level of results
    • timeouts
    • language level
  • Running Checkstyle and PMD on multiple student files
  • Measuring code coverage of student tests
  • Running unit tests on student code
  • Fine-grained control of visibility
  • Cross-testing, i.e., running student tests against
    • student code
    • correct code
    • buggy code

Example 2 does not depend on Example 1, which may be skipped if you are not interested in syntactic analysis.

Further Information

There are low-volume Google groups jacquard-announce and jacquard-discuss.

Information for Contributors

I welcome contributors, especially ones interested in integrating Jacquard with learning management systems (LMSs) and GitHub Classroom. See tips for contributors.

I also welcome reports suggestions of how to improve Jacquard, the documentation, or examples.

Credits

Jacquard was influenced by Tim Kutcher's JGrade and includes some of its Visibility and GradedTest code.

Javadoc

jacquard's People

Contributors

espertus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

jacquard's Issues

Enable combining targets for scoring

If I run a single CheckStyleGrader over multiple targets in a single call to Grader.grade(List<Target>), each target can earn (or lose) the maximum score.

For example, consider:

List<Target> targets = Target.fromPathStrings("src/main/java/student/",
        "Class1.java", "Class2.java");
CheckstyleGrader checkstyleGrader = new CheckstyleGrader(
        "config/checkstyle-rules.xml",
        1.0,
        10.0);
List<Result> results = checkstyleGrader.grade(targets);

Because there are two targets, Checkstyle is worth 20 points, not 10. This violates the
Principle of Least Astonishment.

The same thing happens with other graders.

There are workarounds, such as constructing multiple graders or postprocessing the returned List<Result>, but there should be a better way.

This applies to jacquard-examples/hw1.

Enable multi-part package names

Currently, the package for submitted files must not be nested (e.g., student, not edu.neu.cs2500.hw1. Subpackages should be allowed.

[feature request] Automatic deployment from GitHub

Hello @espertus !

Thank you for your work on jacquard. I am evaluating it as a potential replacement for our hacky autograder code.

One small improvement I've been able to make on our own autograder setup is automatic deployment from GitHub. This allows the upload of a single zip file which automatically pulls new changes from main whenever it is deployed.

I have sent an invite to a private repo which contains the code. The repo contains a GitHub CLI extension which automatically configures repo-level deploy keys (only works on unix-based OSes at the moment, there is a windows bug) and creates the autograder.zip.

I'd love to discuss jacquard more ([email protected]). Your jacquard-discuss group appears to be private or otherwise inaccessible.

Incorrect description of cross-test result

When I ran jacquard-example2, the output included:

    {
        "output": "Test concatWorksForLength1() SUCCEEDED by not falsely reporting a bug in the hidden correct implementation\n",
        "score": 20,
        "visibility": "after_due_date",
        "max_score": 20,
        "name": "Tests of student.concat()"
    },

The output should not have referred to the student implementation as "the hidden correct implementation".

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.