Coder Social home page Coder Social logo

jgrade's Introduction

Hi there ๐Ÿ‘‹

  • ๐Ÿ™‹โ€โ™‚๏ธ My name is Tim Kutcher
  • ๐Ÿง‘โ€๐Ÿ’ป Working in Software
  • ๐Ÿฆ I studied Computer Science at Johns Hopkins University
  • ๐ŸŒ Check out https://tkutcher.com
  • ๐Ÿ“ซ Contact me at [email protected]
  • โšพ Outside of software I'm in to sports and played college baseball at JHU

Top Software Skills


Resources

jgrade's People

Contributors

dependabot[bot] avatar tkutcher avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jgrade's Issues

tkutche1 or tkutcher?

Thank you very much for this package.

It seems that there's a tiny issue with packages name. It seems like the package in jar is called com.github.tkutche1.jgrade.gradescope, but the current examples are importing com.github.tkutcher.jgrade.gradescope.

Show Exception stack traces in grader output

Is your feature request related to a problem? Please describe.
Currently, if a test throws an exception, but there is no line number or stack trace. It would really help our students debug if the default output was more verbose. If you could even point me to where this behavior is happening, I could make the necessary changes myself.

Describe the solution you'd like
The default string conversion of an error message should be a full stack trace, rather than simply the message.

Describe alternatives you've considered
We could modify our own tests to catch all exceptions, print their stack traces as a string, and then throw them back up, but that seems hacky.

Additional context
Here's some example output. You can see there's an out of bound exception, but with no clear way to find the source:

{"tests": [
  {
    "output": "TEST FAILED.\nRange [22, 22 + 100) out of bounds for length 100\nReading 0, 15232128\nByteBuffer get 22, 100, 128\n",
    "score": 0,
    "number": "4",
    "visibility": "visible",
    "max_score": 5,
    "name": "TestRecoveryPerformance2"
  },

CheckstyleGrader isFileToCheck extensibility

Right now, to override the isFileToCheck() method the client would have to subclass the entire thing. An alternative would be to make this method take some interface type that does the computation. Not sure if worth the effort.

Also want to make it so that just takes a list of specific files rather than a directory which ties in to this.

GradingStrategy on top of Grader to grade deductively

Is your feature request related to a problem? Please describe.
If you want to grade deductively (from a max score), would need some tricky hacking to do so.

Describe the solution you'd like
Strategy design pattern on top of a grader to set. Current grading strategy would be the default one.

Refactor main method to be more callable from code

Instead of passing a string as the class name, have a method that takes the Class itself. Then the main method just loads the class and passes it to that method. This way the user can call that method from code passing in the class directly.

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.