Comments (9)
As a starting point, I have added incomplete (and wrong) documentation for how to get started: http://help.exercism.io/getting-started-with-java.html
I can't figure out what the steps are to run the tests locally.
Given that I have the exercism CLI installed (https://github.com/exercism/cli/releases/latest), and that it is configured, I want to be able to say:
exercism fetch java bob
And then follow some sort of instructions to be able to run the tests.
What files would I need to download from this repository (or elsewhere) in order to do that?
/cc @MoreNaruto @brmenchl @edrobal @chelseakomlo @charltonaustin @gitjulia @contraption
from java.
I was able to follow the instructions and run the test with "gradle test"
What I did was:
- Install exercism via homebrew
- Go to exercism/java/bob
- Run "gradle test", I had 18 failed tests
- Wrote some simple implementation, ran "gradle test" again and had 13 failed tests
from java.
Thanks, @contraption! I'm assuming that you have gradle in your classpath. What happens if you don't have gradle installed on your machine?
from java.
@kytrinyx Hmm, is it reasonable to include the gradle wrapper in the repo, so people can just use ./gradlew?
from java.
I didn't have gradle installed, so when I went to ~/exercism/java/bob
and ran gradle test
I got:
Piets-MBP:bob pietvandongen$ gradle test
-bash: gradle: command not found
I then installed gradle with homebrew (brew install gradle
) and ran the tests again, which worked perfectly!
from java.
@contraption it is, but I'll need to write some code in order to be able to serve it up using the exercism CLI. It's not very hard, but I have a lot on my plate at the moment.
@pietvandongen That's great! We'll also need to know how to install gradle on windows (and perhaps linux, though linux peeps tend to know how to figure that out for themselves).
from java.
@kytrinyx Okey, here's what I did on Windows (7, 64 bit).
I first installed the exercism-cli per the website's instructions, which went smoothly. Then I did an exercism fetch java bob
, which put everything in my home directory, under exercism\java\bob
.
Then I went into the directory (with cmd) and typed gradle test
. I got the familiar error:
'gradle' is not recognized as an internal or external command,
operable or batch file.
So I installed gradle, like so:
- I went to http://gradle.org/installation
- I downloaded gradle 2.2.1 (I got a big green button in the right column of the page)
- I unpacked the ZIP file, which contained a folder (
gradle-2.2.1
) and copied it to a convenient location. - I added that location +
\bin
to my PATH, so I can now rungradle
.
After this, I went back to my exercism\java\bob
folder (still with CMD / terminal) and ran:
gradle test
This worked, I got a long trace of tests that failed and a failed build.
from java.
@pietvandongen Thank you! I think this is enough to get the documentation fixed, and launch the track.
from java.
OK, everyone! I'v updated the documentation and activated the Java track (deploying now).
I'd appreciate it if people check in regularly to help provide some feedback on people's solutions.
Since launching exercism, Haskell has been by far the most successful track. I believe that one reason for this is that there is at least one person there who makes sure that every submission receives feedback within 24 hours.
I believe a second factor of the track's success is that the feedback that is provided doesn't directly tell people what to do, but respectfully asks questions, challenging people to think about different aspects of their solution.
Thanks so much for helping get this kicked off!
from java.
Related Issues (20)
- Add GitHub Actions workflow that fails if any deprecated exercise files change
- Only run tests for exercises that have changed
- Add document to describe the representation process for mentors
- Check if ``Bird Watcher`` current test suite is complete/correct HOT 2
- #48in24: Add approaches to Parallel Letter Frequency
- #48in24: Add approaches to Bank Account HOT 5
- #48in24: Add approaches to Knapsack HOT 2
- #48in24: Add analyzer feedback for Parallel Letter Frequency HOT 5
- #48in24: Add analyzer feedback for Bank Account
- #48in24: Add analyzer feedback for Knapsack
- Wizards and Warriors exercise reformat
- Add GitHub Actions workflow step to add summary for test-runner results HOT 2
- Karls Language introduces multiple concepts HOT 3
- Find a way to always have reference documentation updated HOT 3
- Make class names the exercise names if makes sense HOT 4
- Inconsistency between Need for Speed task 6 analyzer feedback and instructions HOT 1
- Collatz Conjecture: Test case should be added to check for more than one method call HOT 2
- Mentoring signup url broken HOT 1
- game-of-life: implement practice exercise HOT 3
- need-for-speed: Niptpick: Tests allow for a batteryDrain that's larger than the available battery. HOT 3
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.