-
Notifications
You must be signed in to change notification settings - Fork 0
/
unittest.json
35 lines (35 loc) · 948 Bytes
/
unittest.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
"test-fb": {
"prefix": ["test-fb"],
"scope" : "declaration",
"body": [
"FUNCTION_BLOCK ${TM_FILENAME_BASE} EXTENDS ${TM_FILENAME_BASE/(.*?)Test/${1}/} IMPLEMENTS ZCore.IUnitTest"
],
"description": "Unittest Functionblock declaration"
},
"test-method": {
"prefix": ["test-method"],
"scope" : "declaration",
"body": [
"METHOD ${TM_FILENAME_BASE}",
"VAR_INPUT",
" assertions : ZCore.IAssertions;",
"END_VAR"
],
"description": "Unittest method declaration"
},
"test-method-parametrized": {
"prefix": ["test-method-parametrized"],
"scope" : "declaration",
"body": [
"{attribute 'DataRow(${5:1}, ${6:2})'\\}",
"METHOD ${TM_FILENAME_BASE}",
"VAR_INPUT",
" assertions : ZCore.IAssertions;",
" ${1:param1} : ${2:INT};",
" ${3:param2} : ${4:DINT};",
"END_VAR"
],
"description": "Unittest method declaration parametrizeable"
}
}