Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commited7b6aa

Browse files
committed
update notes on test runners
1 parent699e8b6 commited7b6aa

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

‎README.md

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ CodeRoad allows you to play interactive coding tutorials in your editor.
88

99
Requires:
1010

11-
- VSCode 1.34+
11+
- VSCode 1.40+
1212
- Git
1313
- Node 10+
1414

@@ -40,15 +40,29 @@ This extension contributes the following settings:
4040

4141
-`coderoad.start`: starts the extension
4242

43-
##Support New Programming Languages
43+
##Supported Programming Languages
4444

45-
In order to gettheextensionto support anew language, you'll need the following:
45+
To support a new programming language,thetest runner needsto support aformat called TAP (https://testanything.org/).
4646

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.
5048

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+
```
5266

5367
##Known Issues
5468

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp