Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added KIFTestSpec.xctemplate/TemplateIcon.icns
Binary file not shown.
28 changes: 28 additions & 0 deletions KIFTestSpec.xctemplate/TemplateInfo.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>MainTemplateFile</key>
<string>___FILEBASENAME___.m</string>
<key>AllowedTypes</key>
<array>
<string>public.objective-c-source</string>
</array>
<key>BuildableType</key>
<string>Test</string>
<key>DefaultCompletionName</key>
<string>Spec</string>
<key>Description</key>
<string>A class implementing KIT tests</string>
<key>Kind</key>
<string>Xcode.IDEKit.TextSubstitutionFileTemplateKind</string>
<key>Platforms</key>
<array>
<string>com.apple.platform.iphoneos</string>
</array>
<key>SortOrder</key>
<string>1</string>
<key>Summary</key>
<string>A class implementing KIT tests</string>
</dict>
</plist>
33 changes: 33 additions & 0 deletions KIFTestSpec.xctemplate/___FILEBASENAME___.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#import "KIFUITestActor+SKActions.h"

// Uncomment or remove as necessary #import "SKPTestFactory.h"
// Uncomment or remove as necessary #import "SKTestFactory.h"

SKP_KIF_SPEC_BEGIN(<#NameOfSpec#>)

describe(@"<#The user action that you are wanting to test e.g. when the user taps a stock item#>", ^{

context(@"<#A potential scenario that could affect the action e.g. the stock item has modifiers#>", ^{

it(@"<#The expected outcome in that scenario e.g. the stock item modifiers screen will show#>", ^{

});

it(@"<#Another expected outcome in that scenario e.g. the stock item gets added to the check with no modifiers#>", ^{

});
});

context(@"<#A potential scenario that could affect the action e.g. the stock item has no modifiers#>", ^{

it(@"<#The expected outcome in that scenario e.g. the stock item modifiers screen will not show#>", ^{

});

it(@"<#Another expected outcome in that scenario e.g. the stock item gets added to the check#>", ^{

});
});
});

SKP_KIF_SPEC_END