regtest 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog +4 -0
- data/Rakefile +3 -2
- data/regtest/combinations.rb +12 -0
- data/regtest/combinations.yml +30 -0
- data/regtest/example.rb +14 -0
- data/regtest/example.yml +6 -0
- data/regtest/no_samples.rb +3 -0
- metadata +21 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbb002804580991f8d6be0a8b3eddd8ef0883f81
|
4
|
+
data.tar.gz: 23a0d3d370e2a9d896ff9112c740b3b15a48eb02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03ea7cf106bb192422c2e9c1292f2974389001528cebf2ac3644e5c8f6fd8a93ad3f29b09128fa6aea14348a485a2ca73dc1db333843b97123c0d589dba464eb
|
7
|
+
data.tar.gz: 361aee80e72f09fb16c6bd5e966b174f86a023c15a3a74452215d8746c3d32f762828a4e0f0af3fe302b9fd73804e67207259dd8fe5325ed80d98a73c21de53d
|
data/Changelog
CHANGED
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.
|
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 = '
|
16
|
+
p.homepage = 'https://github.com/janfri/regtest'
|
16
17
|
end
|
17
18
|
|
18
19
|
task :test do
|
@@ -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
|
data/regtest/example.rb
ADDED
@@ -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
|
data/regtest/example.yml
ADDED
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.
|
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
|
-
|
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: {}
|