@@ -8,7 +8,7 @@ CodeRoad allows you to play interactive coding tutorials in your editor.
8
8
9
9
Requires:
10
10
11
- - VSCode 1.34 +
11
+ - VSCode 1.40 +
12
12
- Git
13
13
- Node 10+
14
14
@@ -40,15 +40,29 @@ This extension contributes the following settings:
40
40
41
41
- ` coderoad.start ` : starts the extension
42
42
43
- ##Support New Programming Languages
43
+ ##Supported Programming Languages
44
44
45
- In order to get theextension to support anew language, you'll need the following:
45
+ To support a new programming language, thetest runner needs to support aformat called TAP ( https://testanything.org/ ).
46
46
47
- 1 . Test runner and CLI command to run test runner
48
- 2 . Parser for test runner output (eg. TAP, JSON) that can determine if tests passed or return the failure message
49
- 3 . Load prism markdown highlighting styles
47
+ Some test frameworks can be modified to use tap, see a list of TAP reporters:https://github.com/sindresorhus/awesome-tap#reporters .
50
48
51
- TODO: A simple way to package all three together would be ideal.
49
+ ###JavaScript
50
+
51
+ #####Jest
52
+
53
+ ``` json
54
+ {
55
+ "scripts" : {
56
+ "test" :" jest"
57
+ },
58
+ "devDependencies" : {
59
+ "jest-tap-reporter" :" 1.9.0"
60
+ },
61
+ "jest" : {
62
+ "reporters" : [" jest-tap-reporter" ]
63
+ }
64
+ }
65
+ ```
52
66
53
67
##Known Issues
54
68