rcomp 0.1.0 → 0.1.1
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.
- data/CHANGELOG.rdoc +8 -0
- data/features/generate.feature +29 -0
- data/features/test.feature +29 -0
- data/lib/rcomp/path.rb +0 -5
- data/lib/rcomp/suite.rb +3 -0
- data/lib/rcomp/version.rb +1 -1
- metadata +2 -1
data/CHANGELOG.rdoc
ADDED
data/features/generate.feature
CHANGED
@@ -222,3 +222,32 @@ Feature: Generate
|
|
222
222
|
When I run `rcomp generate`
|
223
223
|
Then the output should contain "1 file (1 generated)"
|
224
224
|
And the exit status should be 0
|
225
|
+
|
226
|
+
# system files
|
227
|
+
@basic-conf
|
228
|
+
Scenario: Generate with system files
|
229
|
+
Given a file named "rcomp/tests/.DS_Store" with:
|
230
|
+
"""
|
231
|
+
some data
|
232
|
+
|
233
|
+
"""
|
234
|
+
When I run `rcomp generate`
|
235
|
+
Then the output should contain "0 files ()"
|
236
|
+
And the exit status should be 0
|
237
|
+
|
238
|
+
@basic-conf
|
239
|
+
@load-assorted-tests
|
240
|
+
Scenario: Generate with multiple tests and system files
|
241
|
+
Given a file named "rcomp/tests/.DS_Store" with:
|
242
|
+
"""
|
243
|
+
some data
|
244
|
+
|
245
|
+
"""
|
246
|
+
And a file named "rcomp/tests/dir/.DS_Store" with:
|
247
|
+
"""
|
248
|
+
some more data
|
249
|
+
|
250
|
+
"""
|
251
|
+
When I run `rcomp generate`
|
252
|
+
Then the output should contain "3 files (2 skipped, 1 generated)"
|
253
|
+
And the exit status should be 0
|
data/features/test.feature
CHANGED
@@ -167,3 +167,32 @@ Feature: Test
|
|
167
167
|
When I run `rcomp test`
|
168
168
|
Then the output should contain "1 test (1 passed)"
|
169
169
|
And the exit status should be 0
|
170
|
+
|
171
|
+
# system files
|
172
|
+
@basic-conf
|
173
|
+
Scenario: Test with system files
|
174
|
+
Given a file named "rcomp/tests/.DS_Store" with:
|
175
|
+
"""
|
176
|
+
some data
|
177
|
+
|
178
|
+
"""
|
179
|
+
When I run `rcomp test`
|
180
|
+
Then the output should contain "0 tests ()"
|
181
|
+
And the exit status should be 0
|
182
|
+
|
183
|
+
@basic-conf
|
184
|
+
@load-assorted-tests
|
185
|
+
Scenario: Test with multiple tests and system files
|
186
|
+
Given a file named "rcomp/tests/.DS_Store" with:
|
187
|
+
"""
|
188
|
+
some data
|
189
|
+
|
190
|
+
"""
|
191
|
+
And a file named "rcomp/tests/dir/.DS_Store" with:
|
192
|
+
"""
|
193
|
+
some more data
|
194
|
+
|
195
|
+
"""
|
196
|
+
When I run `rcomp test`
|
197
|
+
Then the output should contain "3 tests (1 failed, 1 skipped, 1 passed)"
|
198
|
+
And the exit status should be 1
|
data/lib/rcomp/path.rb
CHANGED
@@ -13,15 +13,10 @@ module RComp
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def expected_path(test_path, type)
|
16
|
-
puts Conf.instance.expected_root
|
17
|
-
puts rel_path(File.dirname(test_path))
|
18
|
-
puts File.basename(test_path, ".*") + (type == :out ? '.out' : '.err')
|
19
|
-
|
20
16
|
cmpnts = []
|
21
17
|
cmpnts << Conf.instance.expected_root
|
22
18
|
cmpnts << rel_path(File.dirname(test_path))
|
23
19
|
cmpnts << File.basename(test_path, ".*") + (type == :out ? '.out' : '.err')
|
24
|
-
puts File.join(cmpnts)
|
25
20
|
File.join(cmpnts)
|
26
21
|
end
|
27
22
|
end
|
data/lib/rcomp/suite.rb
CHANGED
data/lib/rcomp/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rcomp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -86,6 +86,7 @@ extra_rdoc_files: []
|
|
86
86
|
files:
|
87
87
|
- .gitignore
|
88
88
|
- .travis.yml
|
89
|
+
- CHANGELOG.rdoc
|
89
90
|
- Gemfile
|
90
91
|
- Gemfile.lock
|
91
92
|
- LICENSE
|