fuburake 0.9.0.25 → 0.9.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/fuburake.rb +3 -2
- data/lib/nunit.rb +7 -10
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MjkzN2Q0NjdhMWFiODRiNTUzZWM2NGFlNTAzODM5MmEwNjNiMGMzNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MWMwYmY4NzQyNmJjMDliZWNiODRiMWNmNzNhYzYyNWViYTcxMWRiNA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
N2FiM2JhM2Q4ZjJjNmEwY2IzMmZiYjZjY2MyZGQ2ZmEyMzVjZGE0NzNkNDdj
|
10
|
+
ODc5N2E0OGVhNmM1MzY0MDM5ZTI4MDM1M2YxMGIyMGU5NDJlZjBhZmNmYzE5
|
11
|
+
NWYxZThkZDNiNDkwM2MzNGIzZWVmOWQxZWFhNGUxOWZiZDI1OWY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OWIyZmFjMjVjZjcyYmJkYWI0MDcwYjkzYmI0NWE0NzYzMzQyOWU5MmM1MWY0
|
14
|
+
N2I1NDdhNTFkNTFjNjMwZWFhYzgxZDAyYTgyOWM4Mzc4MDYyYzljZjExYjRk
|
15
|
+
NTRmYzBlMDgzZGJkNmNlZWU4ZWIzNDdhMzFlNmFlYmJjODNjZDk=
|
data/lib/fuburake.rb
CHANGED
@@ -76,7 +76,7 @@ module FubuRake
|
|
76
76
|
@options = {
|
77
77
|
:compilemode => ENV['config'].nil? ? "Debug" : ENV['config'],
|
78
78
|
:clrversion => 'v4.0.30319',
|
79
|
-
:platform => '
|
79
|
+
:platform => ENV['platform'].nil? ? "" : ENV['platform'],
|
80
80
|
:unit_test_list_file => 'TESTS.txt',
|
81
81
|
:unit_test_projects => [],
|
82
82
|
:build_number => @build_number,
|
@@ -262,4 +262,5 @@ end
|
|
262
262
|
|
263
263
|
def cleanFile(file)
|
264
264
|
File.delete file unless !File.exist?(file)
|
265
|
-
end
|
265
|
+
end
|
266
|
+
|
data/lib/nunit.rb
CHANGED
@@ -14,12 +14,7 @@ module FubuRake
|
|
14
14
|
|
15
15
|
else
|
16
16
|
# just find testing projects
|
17
|
-
Dir.glob('**/*.Testing.csproj').each do |f|
|
18
|
-
test = File.basename(f, ".csproj")
|
19
|
-
tests.push test
|
20
|
-
end
|
21
|
-
|
22
|
-
Dir.glob('**/*.Tests.csproj').each do |f|
|
17
|
+
Dir.glob('**/*.{Testing,Tests}.csproj').each do |f|
|
23
18
|
test = File.basename(f, ".csproj")
|
24
19
|
tests.push test
|
25
20
|
end
|
@@ -55,7 +50,7 @@ class NUnitRunner
|
|
55
50
|
def initialize(paths)
|
56
51
|
@sourceDir = paths.fetch(:source, 'src')
|
57
52
|
@resultsDir = paths.fetch(:results, 'results')
|
58
|
-
@compilePlatform = paths.fetch(:platform, '
|
53
|
+
@compilePlatform = paths.fetch(:platform, '')
|
59
54
|
@compileTarget = paths.fetch(:compilemode, 'debug')
|
60
55
|
@clrversion = paths.fetch(:clrversion, 'v4.0.30319')
|
61
56
|
@nunitExe = Nuget.tool("NUnit", "nunit-console#{(@compilePlatform.empty? ? '' : "-#{@compilePlatform}")}.exe") + Platform.switch("nothread")
|
@@ -65,8 +60,9 @@ class NUnitRunner
|
|
65
60
|
Dir.mkdir @resultsDir unless exists?(@resultsDir)
|
66
61
|
|
67
62
|
assemblies.each do |assem|
|
68
|
-
file = File.expand_path("#{@sourceDir}/#{assem}/bin/#{@compileTarget}/#{assem}.dll")
|
69
|
-
|
63
|
+
file = File.expand_path("#{@sourceDir}/#{assem}/bin/#{@compilePlatform.empty? ? '' : @compilePlatform + '/'}#{@compileTarget}/#{assem}.dll")
|
64
|
+
puts "The platform is #{@compilePlatform}"
|
65
|
+
sh Platform.runtime("#{@nunitExe} -noshadow -xml=#{@resultsDir}/#{assem}-TestResults.xml \"#{file}\"", @clrversion)
|
70
66
|
end
|
71
67
|
end
|
72
68
|
|
@@ -95,4 +91,5 @@ class NUnitRunner
|
|
95
91
|
executeTests tests
|
96
92
|
end
|
97
93
|
end
|
98
|
-
end
|
94
|
+
end
|
95
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fuburake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.0.
|
4
|
+
version: 0.9.0.26
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy D. Miller
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-08-
|
13
|
+
date: 2013-08-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: ripple-cli
|