提交 6a07aa0d 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

add comments to reference dir

上级 47e14ce0
......@@ -263,8 +263,8 @@
"translation": "Step begin with '@' has checkpoint."
},
{
"id": "your_codes_here",
"translation": "Write your codes here"
"id": "find_example",
"translation": "Examples in 'demo%s%s'"
},
{
"id": "expect_result_here",
......
......@@ -266,8 +266,8 @@
"translation": "@开头的为含验证点的步骤。"
},
{
"id": "your_codes_here",
"translation": "此处编写测试代码"
"id": "find_example",
"translation": "访问'demo%s%s'获取更多帮助"
},
{
"id": "expect_result_here",
......
......@@ -49,7 +49,7 @@ func GenerateTestCaseScript(cs model.TestCase, langType string, independentFile
steps := make([]string, 0)
independentExpects := make([]string, 0)
srcCode := fmt.Sprintf("%s %s", langUtils.LangMap[langType]["commentsTag"],
i118Utils.I118Prt.Sprintf("your_codes_here"))
i118Utils.I118Prt.Sprintf("find_example", string(os.PathSeparator), langType))
info = append(info, fmt.Sprintf("title=%s", caseTitle))
info = append(info, fmt.Sprintf("cid=%s", caseId))
......
......@@ -22,10 +22,10 @@ func initSupportedScriptLang() map[string]map[string]string {
"commentsTag": "::",
"printGrammar": "echo #",
},
"go": {
"extName": "go",
"js": {
"extName": "js",
"commentsTag": "//",
"printGrammar": "println(\"#\")",
"printGrammar": "console.log(\"#\")",
},
"lua": {
"extName": "lua",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册