regtest 0.5.2 → 0.5.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d2e19c8eda829005894d636a45d05ce42f198c1
4
- data.tar.gz: 597a5afcd7767df2f2301c56fb44282519debb16
3
+ metadata.gz: fbb002804580991f8d6be0a8b3eddd8ef0883f81
4
+ data.tar.gz: 23a0d3d370e2a9d896ff9112c740b3b15a48eb02
5
5
  SHA512:
6
- metadata.gz: 2456d22e467ec990fac341c55956e9b0caaa26b9eb2ea2fcdb13b0ffeb9fd911198f4cb0d3efee10ffd1261a356943c05f7bdf8c4b1d4878eb38caddaad22621
7
- data.tar.gz: 817527a1205b974b4a6b4a29a951fc15dfe19c5a1d8c32ad6a95784d386dea12a177b79e18c05406010bff554512f4fd2a85956963d21478f64be9b4d4a3386d
6
+ metadata.gz: 03ea7cf106bb192422c2e9c1292f2974389001528cebf2ac3644e5c8f6fd8a93ad3f29b09128fa6aea14348a485a2ca73dc1db333843b97123c0d589dba464eb
7
+ data.tar.gz: 361aee80e72f09fb16c6bd5e966b174f86a023c15a3a74452215d8746c3d32f762828a4e0f0af3fe302b9fd73804e67207259dd8fe5325ed80d98a73c21de53d
data/Changelog CHANGED
@@ -1,3 +1,7 @@
1
+ 0.5.3
2
+ Use rim/regtest to include regtest files in gem.
3
+ Update homepage.
4
+
1
5
  0.5.2
2
6
  Bugfix REGTEST_FILES: Distinguish between rb and yml files.
3
7
 
data/Rakefile CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'rim/tire'
2
+ require 'rim/regtest'
2
3
  require 'rim/version'
3
4
 
4
5
  $:.unshift 'lib'
@@ -6,13 +7,13 @@ require 'regtest/task'
6
7
 
7
8
  Rim.setup do |p|
8
9
  p.name = 'regtest'
9
- p.version = '0.5.2'
10
+ p.version = '0.5.3'
10
11
  p.authors = 'Jan Friedrich'
11
12
  p.email = 'janfri26@gmail.com'
12
13
  p.summary = 'Regression testing in Ruby.'
13
14
  p.license = 'Ruby'
14
15
  p.description = p.summary
15
- p.homepage = 'http://gitorious.org/regtest'
16
+ p.homepage = 'https://github.com/janfri/regtest'
16
17
  end
17
18
 
18
19
  task :test do
@@ -0,0 +1,12 @@
1
+ require 'ostruct'
2
+ require 'regtest'
3
+
4
+ o = OpenStruct.new
5
+ o.a = [1, 2, 3]
6
+ o.b = [:x, :y]
7
+
8
+ Regtest.combinations(o).each_with_index do |c, i|
9
+ Regtest.sample "Combination #{i}" do
10
+ c.to_h
11
+ end
12
+ end
@@ -0,0 +1,30 @@
1
+ ---
2
+ sample: Combination 0
3
+ result:
4
+ :a: 1
5
+ :b: :x
6
+ ---
7
+ sample: Combination 1
8
+ result:
9
+ :a: 1
10
+ :b: :y
11
+ ---
12
+ sample: Combination 2
13
+ result:
14
+ :a: 2
15
+ :b: :x
16
+ ---
17
+ sample: Combination 3
18
+ result:
19
+ :a: 2
20
+ :b: :y
21
+ ---
22
+ sample: Combination 4
23
+ result:
24
+ :a: 3
25
+ :b: :x
26
+ ---
27
+ sample: Combination 5
28
+ result:
29
+ :a: 3
30
+ :b: :y
@@ -0,0 +1,14 @@
1
+ require 'regtest'
2
+
3
+ Regtest.sample 'String result' do
4
+ # Doing something to get the result of the sample
5
+ # and make sure it is the result of the block
6
+ 'some text'
7
+ end
8
+
9
+ Regtest.sample 'Division by zero' do
10
+ # If an exception occurs while execution of the
11
+ # block it is catched and its message is used as
12
+ # exception value for the sample
13
+ 2 / 0
14
+ end
@@ -0,0 +1,6 @@
1
+ ---
2
+ sample: String result
3
+ result: some text
4
+ ---
5
+ sample: Division by zero
6
+ exception: divided by 0
@@ -0,0 +1,3 @@
1
+ # If a Ruby file doesn't contain any sample regtest shouldn't
2
+ # generate a correspondig YAML file.
3
+ 2 + 2
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: regtest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Friedrich
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2.6'
27
+ - !ruby/object:Gem::Dependency
28
+ name: regtest
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.4'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.4'
27
41
  description: Regression testing in Ruby.
28
42
  email: janfri26@gmail.com
29
43
  executables: []
@@ -35,7 +49,12 @@ files:
35
49
  - Rakefile
36
50
  - lib/regtest.rb
37
51
  - lib/regtest/task.rb
38
- homepage: http://gitorious.org/regtest
52
+ - regtest/combinations.rb
53
+ - regtest/combinations.yml
54
+ - regtest/example.rb
55
+ - regtest/example.yml
56
+ - regtest/no_samples.rb
57
+ homepage: https://github.com/janfri/regtest
39
58
  licenses:
40
59
  - Ruby
41
60
  metadata: {}