Skip to content

Commit 3fa815f

Browse files
committed
updated readme
1 parent 962cb80 commit 3fa815f

3 files changed

Lines changed: 20 additions & 76 deletions

File tree

‎README‎

Lines changed: 10 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -7,43 +7,14 @@ Why not?
77
We've all seen plenty of bad Java code, and written it ourselves. Hopefully these koans can
88
help people eager to learn Java; to write clean, maintainable code.
99

10-
Current packaging is intended to be imported into an eclipse workspace, though the code
11-
artifacts can stand on their own, or work in other IDEs.
10+
Running Instructions:
11+
1. Download and unarchive the contents of the most recent java-koans in development from:
12+
https://github.com/matyb/java-koans/archives/master
13+
2. Open a terminal and cd to the directory you unarchived that file to's koans/src directory
14+
3. run run.bat or run.sh (whichever is applicable for your OS)
15+
4. follow the instructions on screen, and rerun the run file in the last step
1216

13-
A no frills text based interface, with the intention of retaining a low barrier
14-
of entry, and few dependencies. Depends on JUnit and EasyMock(EasyMock is only necessary
15-
for tests).
16-
17-
/*
18-
* RUNNING - INSTRUCTIONS
19-
*/
20-
1. Download and setup Java (5+ required) SDK/JDK - JRE is not enough!
21-
2. Compile classes in src/* (optionally, compile tests as well)
22-
3. Start KoanSuiteRunner w/ no arguments to run all koans, in order from least difficult
23-
to most difficult.
24-
3a. KoanSuiteRunner may be invoked with a fully qualified koansuite class (
25-
located in koan folder) name to run just one Suite.
26-
3b. For running just a specific @Koan, run with two arguments, fully qualified
27-
koan suite name, the name of the koan method, separated by a space.
28-
4. Observe the console output from running the koans, fix, and rerun. Rinse and repeat.
29-
30-
/*
31-
* DEVELOPING - KOANS
32-
*/
33-
1. Setup project in your IDE.
34-
2. Follow example from another KoanSuite class (located in koan folder)
35-
3. Place new koan suite (if applicable) in PathToEnlightment.xml - order
36-
IS important - koans will not run if you miss a method, or suite!
37-
4. Remember to place the __ on the right side so expectation string in console output
38-
makes sense to users.
39-
5. In the @Koan annotation, adjust the description accordingly.
40-
6. Run all tests to ensure that
41-
6a. All Koans are failing (pupil learns by fixing)
42-
6b. Expectations are passed properly (look in console output from test run)
43-
6c. Test that all suites and koans are in xml file. Virtually all tests will fail if you
44-
miss even one.
45-
7. Once the tests that check the integrity of the koans pass; commit the koans to a
46-
branch/fork of the java-koans project on github.
47-
48-
This project has test that depend on: JUnit and EasyMock which are licensed separately and subject
49-
to the terms and conditions applicable for each library.
17+
Developing a Koan:
18+
1. Follow any of the existing koans as an example to create a new class w/ koan methods (indicated by the @Koan annotation)
19+
2. Define the order and metadata associated with each koan in the PathToEnlightment.xml
20+
3. If necessary - use dynamic content in your lesson, examples are located in XmlVariableInjector class (and Test)

‎koans/README‎

Lines changed: 10 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -7,41 +7,14 @@ Why not?
77
We've all seen plenty of bad Java code, and written it ourselves. Hopefully these koans can
88
help people eager to learn Java; to write clean, maintainable code.
99

10-
Current packaging is intended to be imported into an eclipse workspace, though the code
11-
artifacts can stand on their own, or work in other IDEs.
10+
Running Instructions:
11+
1. Download and unarchive the contents of the most recent java-koans in development from:
12+
https://github.com/matyb/java-koans/archives/master
13+
2. Open a terminal and cd to the directory you unarchived that file to's koans/src directory
14+
3. run run.bat or run.sh (whichever is applicable for your OS)
15+
4. follow the instructions on screen, and rerun the run file in the last step
1216

13-
A no frills text based interface, with the intention of retaining a low barrier
14-
of entry, and few dependencies. Depends on JUnit and EasyMock(EasyMock is only necessary
15-
for tests).
16-
17-
/*
18-
* RUNNING - INSTRUCTIONS
19-
*/
20-
1. Download and setup Java (5+ required) SDK/JDK - JRE is not enough!
21-
2. Compile classes in src/* (optionally, compile tests as well)
22-
3. Start KoanSuiteRunner w/ no arguments to run all koans, in order from least difficult
23-
to most difficult.
24-
3a. KoanSuiteRunner may be invoked with a fully qualified koansuite class (
25-
located in koan folder) name to run just one Suite.
26-
3b. For running just a specific @Koan, run with two arguments, fully qualified
27-
koan suite name, the name of the koan method, separated by a space.
28-
4. Observe the console output from running the koans, fix, and rerun. Rinse and repeat.
29-
30-
/*
31-
* DEVELOPING - KOANS
32-
*/
33-
1. Setup project in your IDE.
34-
2. Follow example from another KoanSuite class (located in com.sandwich.koan.suite.*)
35-
3. Place new koan suite (if applicable) in PathToEnlightment.xml - order
36-
IS important - koans will not run if you miss a method, or suite!
37-
4. Remember to place the __ on the right side so expectation string in console output
38-
makes sense to users.
39-
5. In the @Koan annotation, adjust the description accordingly.
40-
6. Run all tests to ensure that
41-
6a. All Koans are failing (pupil learns by fixing)
42-
6b. Expectations are passed properly (look in console output from test run)
43-
7. Once the tests that check the integrity of the koans pass; commit the koans to a
44-
branch/fork of the java-koans project on github.
45-
46-
This project has test that depend on: JUnit and EasyMock which are licensed separately and subject
47-
to the terms and conditions applicable for each library.
17+
Developing a Koan:
18+
1. Follow any of the existing koans as an example to create a new class w/ koan methods (indicated by the @Koan annotation)
19+
2. Define the order and metadata associated with each koan in the PathToEnlightment.xml
20+
3. If necessary - use dynamic content in your lesson, examples are located in XmlVariableInjector class (and Test)

‎koans/lib/koans.jar‎

100644100755
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)