Skip to content

Commit 44e6b64

Browse files
authored
Merge pull request ismetanin#9 from ismetanin/unit_test_template_add
Unit test template add
2 parents c16417f + 303997d commit 44e6b64

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDECodeSnippetCompletionPrefix</key>
6+
<string>Unit test template</string>
7+
<key>IDECodeSnippetCompletionScopes</key>
8+
<array>
9+
<string>All</string>
10+
</array>
11+
<key>IDECodeSnippetContents</key>
12+
<string>// given
13+
14+
// when
15+
16+
// then</string>
17+
<key>IDECodeSnippetIdentifier</key>
18+
<string>750DA0B9-FABF-465E-BD7A-2E7AEB724658</string>
19+
<key>IDECodeSnippetLanguage</key>
20+
<string>Xcode.SourceCodeLanguage.Generic</string>
21+
<key>IDECodeSnippetTitle</key>
22+
<string>Unit test case template</string>
23+
<key>IDECodeSnippetUserSnippet</key>
24+
<true/>
25+
<key>IDECodeSnippetVersion</key>
26+
<integer>2</integer>
27+
</dict>
28+
</plist>

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,21 @@ rm -rf XcodeCodeSnippets
201201
static let <#notificationName#> = NSNotification.Name("<#projectName#>.notifications.<#notificationName#>")
202202
```
203203
</details>
204+
205+
* A code block for creating template comments for unit test, **shortcut:** `Unit test template`
206+
<details>
207+
<summary>Code</summary>
208+
<br>
209+
210+
```swift
211+
// given
212+
213+
// when
214+
215+
// then
216+
217+
```
218+
</details>
204219

205220
### Author
206221

0 commit comments

Comments
 (0)