fuburake 0.5.0.19 → 0.5.0.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/nunit.rb +2 -1
- data/lib/platform.rb +1 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NTk2ZDNiZDk5YmVjODM0NjZiYjVhYjRkZjBiOGFkNmUwNmVmNmUxMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODBhOTRhMmVlNTIxYjUzN2NlNDY4NWJiZGU1ODQ5YTE0MWI4YTBlMA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MmZhYWE4NDJiOWYxODAyNGVkZGJlY2Q4MTE1MmZkZGM1YmU3ZjkwYmNkNzI4
|
10
|
+
OTEwNTc0ZmM5ODA3MDAyODNhMGZiMDkzNjhkMjJlNGY0YjU2ZWFlMWI0MmY5
|
11
|
+
MDFiNGYxOTYzOWFhMjkyMDMyODdmNDYzYjYxYzA4ZmM5ZWIyZjc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTAyZTYxOTg0Njk4ZWEzYWUwYmY2ZTJiMDcwNmJiNGZjNjFmNjVmYTZkYzI0
|
14
|
+
MDkzOTFlYTdjYzBiY2MzNzE3OTM0YmUwMGViYThkN2ZkYmQ2Mzk2MWY3NjA1
|
15
|
+
NTcyNGE2ZGZjNzAzYzkxMTg0MTI0YzMyNmVhYTZmZTg0Njk4ZWQ=
|
data/lib/nunit.rb
CHANGED
@@ -42,6 +42,7 @@ class NUnitRunner
|
|
42
42
|
@resultsDir = paths.fetch(:results, 'results')
|
43
43
|
@compilePlatform = paths.fetch(:platform, 'x86')
|
44
44
|
@compileTarget = paths.fetch(:compilemode, 'debug')
|
45
|
+
@clrversion = paths.fetch(:clrversion, 'v4.0.30319')
|
45
46
|
@nunitExe = Nuget.tool("NUnit", "nunit-console#{(@compilePlatform.empty? ? '' : "-#{@compilePlatform}")}.exe") + Platform.switch("nothread")
|
46
47
|
end
|
47
48
|
|
@@ -50,7 +51,7 @@ class NUnitRunner
|
|
50
51
|
|
51
52
|
assemblies.each do |assem|
|
52
53
|
file = File.expand_path("#{@sourceDir}/#{assem}/bin/#{@compileTarget}/#{assem}.dll")
|
53
|
-
sh Platform.runtime("#{@nunitExe} -xml=#{@resultsDir}/#{assem}-TestResults.xml \"#{file}\"")
|
54
|
+
sh Platform.runtime("#{@nunitExe} -xml=#{@resultsDir}/#{assem}-TestResults.xml \"#{file}\"", @clrversion)
|
54
55
|
end
|
55
56
|
end
|
56
57
|
|
data/lib/platform.rb
CHANGED
@@ -4,10 +4,9 @@ module Platform
|
|
4
4
|
!RUBY_PLATFORM.match("linux|darwin").nil?
|
5
5
|
end
|
6
6
|
|
7
|
-
def self.runtime(cmd)
|
7
|
+
def self.runtime(cmd, runtime)
|
8
8
|
command = cmd
|
9
9
|
if self.is_nix
|
10
|
-
runtime = (CLR_TOOLS_VERSION || "v4.0.30319")
|
11
10
|
command = "mono --runtime=#{runtime} #{cmd}"
|
12
11
|
end
|
13
12
|
command
|