jsallis / nu-tmbundle

TextMate bundle for the Nu programming language

This URL has Read+Write access

nu-tmbundle / Commands / Run Tests.tmCommand
100644 31 lines (27 sloc) 1.092 kb
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
<?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>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>require_cmd "${TM_NUTEST:=nutest}" "If you have installed Nu, then you need to either update your &lt;tt&gt;PATH&lt;/tt&gt; or set the &lt;tt&gt;TM_NUTEST&lt;/tt&gt; shell variable (e.g. in Preferences / Advanced)"
 
$(type -p "${TM_RUBY:-ruby}") -e'
 
require ENV["TM_SUPPORT_PATH"] + "/lib/tm/executor"
require ENV["TM_SUPPORT_PATH"] + "/lib/tm/save_current_document"
 
TextMate.save_current_document
TextMate::Executor.run(ENV["TM_NUTEST"] || "nutest", ENV["TM_FILEPATH"], :version_args =&gt; [])'&lt;&amp;0</string>
<key>input</key>
<string>document</string>
<key>keyEquivalent</key>
<string>@R</string>
<key>name</key>
<string>Run Tests</string>
<key>output</key>
<string>showAsHTML</string>
<key>scope</key>
<string>source.nu</string>
<key>uuid</key>
<string>CD9FF10E-B2AD-446C-8580-B050643473CF</string>
</dict>
</plist>