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.
Files changed (3) hide show
  1. data/lib/spec.json +1 -1
  2. data/lib/test.rb +9 -2
  3. metadata +1 -1
data/lib/spec.json CHANGED
@@ -1 +1 @@
1
- {"name":"dev_tasks","version":"0.0.161"}
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
- #puts "nunit_dll: " + nunit_dll
21
- self.add "\"#{Test.nunit_console}\" \"#{nunit_dll}\" /xml:\"#{nunit_dll}.TestResults.xml\""
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev_tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.161
4
+ version: 0.0.162
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: