Comments (8)
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.
Great. Let me know if there is anything I can do to help develop or test this functionality.
from java-koans.
@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:
- compile all the koans
- update all the file "hashes" to indicate no compilation is necessary
- set system property to disable the "press Q" behavior
- 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.
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.
@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.
Thanks, @matyb. I'll check it out this weekend.
from java-koans.
The changes look good, @matyb. They will help my automated grading process a lot. Thanks again!
from java-koans.
Great to hear @DavidWhitlock, thanks for following up
from java-koans.
Related Issues (20)
- Misleading koan about chars HOT 1
- Source path must actually exist in AboutTryWithResources HOT 17
- Create a JavaKones Organization HOT 5
- netbeans can´t run jInternal frame HOT 2
- AboutPrimitives HOT 2
- Add ANSI colors to terminal output? HOT 2
- Intermediate AboutEquality not behaving as expected. HOT 2
- Run koan on IntelliJ IDEA HOT 2
- FileMonitorPolling error HOT 2
- Should Koan output "give away" the solution? HOT 3
- Misleading comment on shortCircuit koan HOT 1
- assertNotSameInstance a bit unclear HOT 3
- nestedIfsWithoutCurlysAreReallyMisleading doesn't live up to the name HOT 1
- error in instructions for toStringIsTestedForNullWhenInvokedImplicitly HOT 1
- Outdated Gradle version?
- Only display the expected value after student has attempted koan
- IDE support
- Intermediate AboutStreams.java: Duplicate Koan HOT 1
- AboutFileIO Koan basicFileWritingAndReading() line 29 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from java-koans.