codersdojo 1.2.02 → 1.2.03
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/templates/any/README +1 -1
- data/templates/java.junit/run-endless.%sh% +1 -1
- data/templates/java.junit/run-once.%sh% +1 -1
- data/templates/scala.junit/%Kata_file%Test.scala +25 -0
- data/templates/scala.junit/.meta +3 -0
- data/templates/scala.junit/README +18 -0
- data/templates/scala.junit/bin/place_your_class_files_here +0 -0
- data/templates/scala.junit/lib/place_your_libs_here +0 -0
- data/templates/scala.junit/run-endless.%sh% +1 -0
- data/templates/scala.junit/run-once.%sh% +3 -0
- metadata +11 -4
data/templates/any/README
CHANGED
@@ -3,7 +3,7 @@ These files were created:
|
|
3
3
|
run-once.%sh% runs your tests once
|
4
4
|
run-endless.%sh% runs your tests endlessly via run-once.%sh%
|
5
5
|
|
6
|
-
run-once.%sh% is not implemented by now. You have to implement it appropriately.
|
6
|
+
run-once.%sh% is not implemented by now. You have to implement it appropriately. The return code of the script has to be 0 if the tests succeeded and another value if the tests failed.
|
7
7
|
|
8
8
|
Run run-endless.%sh% and start your kata. (On Mac/Linux you have to call ./run-endless.%sh%.)
|
9
9
|
|
@@ -1 +1 @@
|
|
1
|
-
codersdojo start run-once.%sh%
|
1
|
+
codersdojo start run-once.%sh% src/%Kata_file%Test.java
|
@@ -0,0 +1,25 @@
|
|
1
|
+
// Adapt the code to your code kata primes.
|
2
|
+
// Important: Test and production code has to be
|
3
|
+
// completely in this file.
|
4
|
+
|
5
|
+
import org.scalatest.junit.JUnitSuite
|
6
|
+
import org.scalatest.junit.ShouldMatchersForJUnit
|
7
|
+
import org.junit.Test
|
8
|
+
import Primes._
|
9
|
+
|
10
|
+
class PrimesTest extends JUnitSuite with ShouldMatchersForJUnit {
|
11
|
+
|
12
|
+
@Test
|
13
|
+
def verifyThatOneIsPrime() = {
|
14
|
+
foo() should be("fixed")
|
15
|
+
}
|
16
|
+
|
17
|
+
}
|
18
|
+
|
19
|
+
object Primes {
|
20
|
+
|
21
|
+
def foo() = {
|
22
|
+
"fixme"
|
23
|
+
}
|
24
|
+
|
25
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
These files were created:
|
2
|
+
README is what you are currently reading
|
3
|
+
run-once.%sh% runs your tests once
|
4
|
+
run-endless.%sh% runs your tests endlessly via run-once.%sh%
|
5
|
+
|
6
|
+
Run run-endless.%sh% and start your kata. (On Mac/Linux you have to call ./run-endless.%sh%.)
|
7
|
+
|
8
|
+
Assumptions:
|
9
|
+
- A Java JDK is installed on your system and 'java' and 'javac' are in the path.
|
10
|
+
- scala-library.jar, junit.jar, scalatest.jar and org.hamcrest.core.jar are placed in the 'lib' directory.
|
11
|
+
- junit.jar contains JUnit 4.
|
12
|
+
- The whole kata source code is in the one %Kata_file%Test.scala.
|
13
|
+
- The kata source file is placed in the 'src' directory.
|
14
|
+
- The kata class file is generated into the 'bin' directory.
|
15
|
+
- In the source file the classes are placed in the default package.
|
16
|
+
- The kata source file has a main method that starts the tests.
|
17
|
+
- If your IDE (like Eclipse) compiles the source file, you should remove the first two lines
|
18
|
+
in the run-once.%sh% file.
|
File without changes
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
codersdojo start run-once.%sh% src/%Kata_file%Test.scala
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codersdojo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
9
|
+
- 3
|
10
|
+
version: 1.2.03
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- CodersDojo-Team
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-03-
|
18
|
+
date: 2011-03-05 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -126,6 +126,12 @@ files:
|
|
126
126
|
- templates/ruby.test-unit/README
|
127
127
|
- templates/ruby.test-unit/run-endless.%sh%
|
128
128
|
- templates/ruby.test-unit/run-once.%sh%
|
129
|
+
- templates/scala.junit/%Kata_file%Test.scala
|
130
|
+
- templates/scala.junit/bin/place_your_class_files_here
|
131
|
+
- templates/scala.junit/lib/place_your_libs_here
|
132
|
+
- templates/scala.junit/README
|
133
|
+
- templates/scala.junit/run-endless.%sh%
|
134
|
+
- templates/scala.junit/run-once.%sh%
|
129
135
|
- templates/any/.meta
|
130
136
|
- templates/clojure.is-test/.meta
|
131
137
|
- templates/csharp.nunit/.meta
|
@@ -137,6 +143,7 @@ files:
|
|
137
143
|
- templates/python.pyunit/.meta
|
138
144
|
- templates/ruby.rspec/.meta
|
139
145
|
- templates/ruby.test-unit/.meta
|
146
|
+
- templates/scala.junit/.meta
|
140
147
|
- lib/place_libs_here
|
141
148
|
- bin/codersdojo
|
142
149
|
has_rdoc: true
|