codersdojo 1.0.9 → 1.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,6 @@
1
1
  ; Adapt the code to your code kata %kata_file%.
2
+ ; Important: Test and production code has to be
3
+ ; completely in this file.
2
4
 
3
5
  (use 'clojure.test)
4
6
 
@@ -1,4 +1,6 @@
1
1
  // Adapt the code to your code kata %kata_file%.
2
+ // Important: Test and production code has to be
3
+ // completely in this file.
2
4
 
3
5
  import org.junit.*;
4
6
  import static org.junit.Assert.*;
@@ -0,0 +1,8 @@
1
+ Two shell scripts were created:
2
+ run-once.%sh% runs your tests once
3
+ run-endless.%sh% runs your tests endlessly via run-once.%sh%
4
+
5
+ Run run-endless.%sh% and start your kata.
6
+
7
+ Assumptions:
8
+ - The whole kata source code is in the one %kata_file%.js.
@@ -0,0 +1,3 @@
1
+ jspec init
2
+ mv spec.js spec/unit
3
+ codersdojo start run-once.%sh% spec/unit/spec.js
@@ -0,0 +1 @@
1
+ jspec --rhino run
@@ -0,0 +1,16 @@
1
+ // Adapt the code to your code kata %kata_file%.
2
+ // Important: Test and production code has to be
3
+ // completely in this file.
4
+
5
+ describe '%kata_file%'
6
+ describe '.foo()'
7
+
8
+ function foo() {
9
+ return "fixme"
10
+ }
11
+
12
+ it 'should do something'
13
+ foo().should.be "foo"
14
+ end
15
+ end
16
+ end
@@ -1,4 +1,6 @@
1
1
  # Adapt the code to your code kata %kata_file%.
2
+ # Important: Test and production code has to be
3
+ # completely in this file.
2
4
 
3
5
  import unittest
4
6
 
@@ -1,4 +1,6 @@
1
1
  # Adapt the code to your code kata %kata_file%.
2
+ # Important: Test and production code has to be
3
+ # completely in this file.
2
4
 
3
5
  require 'test/unit'
4
6
 
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: 5
4
+ hash: 3
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 9
10
- version: 1.0.9
9
+ - 10
10
+ version: 1.0.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - CodersDojo-Team
@@ -71,6 +71,10 @@ files:
71
71
  - templates/java.junit/README
72
72
  - templates/java.junit/run-endless.%sh%
73
73
  - templates/java.junit/run-once.%sh%
74
+ - templates/javascript.jspec/README
75
+ - templates/javascript.jspec/run-endless.%sh%
76
+ - templates/javascript.jspec/run-once.%sh%
77
+ - templates/javascript.jspec/spec.js
74
78
  - templates/python.pyunit/%kata_file%.py
75
79
  - templates/python.pyunit/README
76
80
  - templates/python.pyunit/run-endless.%sh%