Giter Site home page Giter Site logo

Comments (8)

matyb avatar matyb commented on September 23, 2024

yeah it totally can, in fact - that's how it used to work back when i started it. i doubt this is that difficult, i'll leave this open and see if i can get it implemented easily. i really don't think it'd take too much, just need to pull out of my memory the best place to implement that.

from java-koans.

DavidWhitlock avatar DavidWhitlock commented on September 23, 2024

Great. Let me know if there is anything I can do to help develop or test this functionality.

from java-koans.

matyb avatar matyb commented on September 23, 2024

@DavidWhitlock sorry about the delay, life's been hectic to put it mildly. Here's what I'm thinking tell me if this works for you.

The build is currently in ant (probably another issue I should log :)), I'm thinking adding a target to:

  1. compile all the koans
  2. update all the file "hashes" to indicate no compilation is necessary
  3. set system property to disable the "press Q" behavior
  4. run the koans w/ the existing runner

This will just indicate to your grading suite/script success/failure like it does today, not necessarily which koan failed (though that'll be written to stdout).

Right now the time consuming part is compiling every single koan class incrementally. This definitely speeds up interactive koans, but if you just want to "let it rip" there's a ton of overhead associated w/ each compile phase that when summed together yields an awful lot of waste. If you think knowing which koan failed (ie a return code 1 for first koan failed, 2 for 2nd, etc. and 0 for all succeed) I can alter step 4.

I'll count on running with this, but let me know if you can think of something w/ more reuse and efficiency or that would work better.

from java-koans.

DavidWhitlock avatar DavidWhitlock commented on September 23, 2024

Hey, @matyb. Thanks for getting back to me.

That sounds like a fine plan. Running with a system property will work for me and I don't mind a slower compile process as long as the JVM exits at the end. Printing out which koans failed is fine with me. I don't need the JVM's exit code to reflect the number of failures. A non-zero exit code would be cool if any test failed, but it's not necessary.

Thanks again!

Dave

from java-koans.

matyb avatar matyb commented on September 23, 2024

@DavidWhitlock added an "interactive" mode to koans/app/config/config.properties, feel free to flip that to false to enable the behavior you seek.

Hope this helps. Let me know if you find problems.

from java-koans.

DavidWhitlock avatar DavidWhitlock commented on September 23, 2024

Thanks, @matyb. I'll check it out this weekend.

from java-koans.

DavidWhitlock avatar DavidWhitlock commented on September 23, 2024

The changes look good, @matyb. They will help my automated grading process a lot. Thanks again!

from java-koans.

matyb avatar matyb commented on September 23, 2024

Great to hear @DavidWhitlock, thanks for following up

from java-koans.

Related Issues (20)

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.