Coder Social home page Coder Social logo

Comments (2)

tkutcher avatar tkutcher commented on May 26, 2024

Hi there!

Terribly sorry I had no idea I was missing notifications for this project. Although I'm wondering now if the semester's over if I'm too late in my reply. In general, definitely interested in contributors to maintain the project since I'm out of school now and have no personal use for grading Java 8 assignments haha.

But great idea! So I know originally I was a little apprehensive about including stack-traces because I was afraid of leaking test information to the students. I.e. the stack trace will include the calls that are part of our testing, not just their code, - and depending on the setup they might be able to figure out things about hidden tests we didn't want them to find out.

Although it would be cool if this was configurable so you could turn stack-printing on or off. If you're interested I could point you to the relevant spot in the code and create a branch to do this and help a little.

But the relevant file is https://github.com/tkutcher/jgrade/blob/dev/src/main/java/com/github/tkutche1/jgrade/gradedtest/GradedTestListener.java . That very bottom method is where we intercept a failed test. If you look at the JUnit API for Failure we can get the trace in that object - https://junit.org/junit4/javadoc/4.12/org/junit/runner/notification/Failure.html#getTrace() . But (for reasons I mentioned earlier, not 100% sure if they are valid or not), this should at least be something that can be disabled.

Thanks for the report.

Cheers,

Tim

from jgrade.

benhannel avatar benhannel commented on May 26, 2024

Thanks for the really in depth reply! I've graduated as well at this point, so I'm afraid I can no longer use the feature. It was a really useful framework for running our class - thanks for making it :)

Hope you're well.

from jgrade.

Related Issues (10)

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.