dev_tasks 0.0.161 → 0.0.162
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/spec.json +1 -1
- data/lib/test.rb +9 -2
- metadata +1 -1
data/lib/spec.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"dev_tasks","version":"0.0.
|
1
|
+
{"name":"dev_tasks","version":"0.0.162"}
|
data/lib/test.rb
CHANGED
@@ -17,8 +17,11 @@ class Test < CommandArray
|
|
17
17
|
outputPath=text[/Release[.\w\W]+<OutputPath>([\w\.\\]+)</,1]
|
18
18
|
if(!assemblyName.nil? && !outputPath.nil?)
|
19
19
|
nunit_dll = "#{Rake.application.original_dir}\\#{outputPath}\\#{assemblyName}.dll".gsub("\\\\","\\").gsub('/','\\')
|
20
|
-
|
21
|
-
|
20
|
+
if(outputPath.include?('x86'))
|
21
|
+
self.add "\"#{Test.nunit_console_x86}\" \"#{nunit_dll}\" /xml:\"#{nunit_dll}.TestResults.xml\""
|
22
|
+
else
|
23
|
+
self.add "\"#{Test.nunit_console}\" \"#{nunit_dll}\" /xml:\"#{nunit_dll}.TestResults.xml\""
|
24
|
+
end
|
22
25
|
end
|
23
26
|
end
|
24
27
|
}
|
@@ -28,4 +31,8 @@ class Test < CommandArray
|
|
28
31
|
def self.nunit_console
|
29
32
|
"C:\\Program Files (x86)\\NUnit 2.6.3\\bin\\nunit-console.exe"
|
30
33
|
end
|
34
|
+
def self.nunit_console_x86
|
35
|
+
"C:\\Program Files (x86)\\NUnit 2.6.3\\bin\\nunit-console-x86.exe"
|
36
|
+
end
|
37
|
+
|
31
38
|
end
|