oktest 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/Rakefile.rb +1 -1
- data/lib/oktest.rb +2 -2
- data/oktest.gemspec +10 -11
- data/test/assertion_test.rb +1 -1
- data/test/filter_test.rb +1 -1
- data/test/fixture_test.rb +1 -1
- data/test/generator_test.rb +1 -1
- data/test/helper_test.rb +1 -1
- data/test/initialize.rb +1 -1
- data/test/mainapp_test.rb +2 -2
- data/test/matcher_test.rb +1 -1
- data/test/misc_test.rb +1 -1
- data/test/node_test.rb +1 -1
- data/test/reporter_test.rb +1 -1
- data/test/runner_test.rb +1 -1
- data/test/util_test.rb +1 -1
- data/test/utilhelper_test.rb +1 -1
- data/test/visitor_test.rb +1 -1
- metadata +9 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e79b6abcb74066a35308ed22341f6fff30b2c9a5bd485e2850c5428db9843f1
|
4
|
+
data.tar.gz: a2fef95c6c2207b9732a31bd25b61d3b43389e84f55f55399e465511ce55ea4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60e20c0564717185d9291ea5beca7bf09a55e924c259847660a5519831124213db4ddb8945711bc21f7ea6bae69c8e24f089fc9e15e1aab6047dc50fcfe46bf8
|
7
|
+
data.tar.gz: fef79a96010440ea673342ec1a76bc313d88b0ed1f8d400a7832ddfbb23157b08addd96aa84ae43b523cfd96a6fa9aadc4548435d34705b67dae507d9bd6e97c
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Oktest.rb is a new-style testing library for Ruby.
|
6
6
|
|
7
|
-
* `ok {actual} == expected` style [
|
7
|
+
* `ok {actual} == expected` style [assertions](#assertions).
|
8
8
|
* [Fixture injection](#fixture-injection) inspired by dependency injection.
|
9
9
|
* Structured test specifications like RSpec.
|
10
10
|
* [JSON Matcher](#json-matcher) similar to JSON Schema.
|
@@ -43,7 +43,7 @@ Oktest.scope do #
|
|
43
43
|
end #
|
44
44
|
```
|
45
45
|
|
46
|
-
Oktest.rb requires Ruby 2.
|
46
|
+
Oktest.rb requires Ruby 2.4 or later.
|
47
47
|
|
48
48
|
|
49
49
|
|
data/Rakefile.rb
CHANGED
data/lib/oktest.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
|
3
3
|
###
|
4
|
-
### $Release: 1.3.
|
4
|
+
### $Release: 1.3.1 $
|
5
5
|
### $Copyright: copyright(c) 2011-2024 kuwata-lab.com all rights reserved $
|
6
6
|
### $License: MIT License $
|
7
7
|
###
|
@@ -12,7 +12,7 @@ require 'set'
|
|
12
12
|
module Oktest
|
13
13
|
|
14
14
|
|
15
|
-
VERSION = '$Release: 1.3.
|
15
|
+
VERSION = '$Release: 1.3.1 $'.split()[1]
|
16
16
|
|
17
17
|
|
18
18
|
class OktestError < StandardError
|
data/oktest.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
|
3
3
|
###
|
4
|
-
### $Release: 1.3.
|
4
|
+
### $Release: 1.3.1 $
|
5
5
|
### $License: MIT License $
|
6
6
|
### $Copyright: copyright(c) 2011-2024 kuwata-lab.com all rights reserved $
|
7
7
|
###
|
@@ -13,24 +13,23 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.name = "oktest"
|
14
14
|
s.author = "kwatch"
|
15
15
|
s.email = "kwatch@gmail.com"
|
16
|
-
s.version = "$Release: 1.3.
|
16
|
+
s.version = "$Release: 1.3.1 $".split()[1]
|
17
17
|
s.license = "MIT"
|
18
18
|
s.platform = Gem::Platform::RUBY
|
19
|
-
s.homepage = "https://github.com/kwatch/oktest/tree/ruby"
|
20
|
-
s.summary = "new style testing library"
|
19
|
+
s.homepage = "https://github.com/kwatch/oktest/tree/ruby/ruby"
|
20
|
+
s.summary = "a new style testing library"
|
21
21
|
s.description = <<'END'
|
22
22
|
Oktest.rb is a new-style testing library for Ruby.
|
23
|
+
You can write `ok {1+1} == 2` instead of `assert_equal 2, 1+1` or
|
24
|
+
`expect(1+1).to eq 2`.
|
23
25
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
* Filtering testcases by pattern or tags.
|
28
|
-
* Blue/red color instead of green/red for accesability.
|
29
|
-
* Small code size (about 2300 lines) and good performance.
|
26
|
+
In addition, Oktest.rb supports **Fixture injection** feature
|
27
|
+
inspired by dependency injection and **JSON Matcher** feature
|
28
|
+
similar to JSON schema.
|
30
29
|
|
31
30
|
See https://github.com/kwatch/oktest/tree/ruby/ruby for details.
|
32
31
|
END
|
33
|
-
s.required_ruby_version = ">= 2.
|
32
|
+
s.required_ruby_version = ">= 2.4"
|
34
33
|
s.add_dependency "diff-lcs", "~> 1.0"
|
35
34
|
s.add_dependency "benry-recorder", "~> 1.0"
|
36
35
|
|
data/test/assertion_test.rb
CHANGED
data/test/filter_test.rb
CHANGED
data/test/fixture_test.rb
CHANGED
data/test/generator_test.rb
CHANGED
data/test/helper_test.rb
CHANGED
data/test/initialize.rb
CHANGED
data/test/mainapp_test.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
###
|
2
|
-
### $Release: 1.3.
|
2
|
+
### $Release: 1.3.1 $
|
3
3
|
### $Copyright: copyright(c) 2011-2024 kuwata-lab.com all rights reserved $
|
4
4
|
### $License: MIT License $
|
5
5
|
###
|
@@ -257,7 +257,7 @@ END
|
|
257
257
|
end
|
258
258
|
|
259
259
|
it "[!qqizl] '--version' option prints version number." do
|
260
|
-
expected = '$Release: 1.3.
|
260
|
+
expected = '$Release: 1.3.1 $'.split()[1] + "\n"
|
261
261
|
#
|
262
262
|
ret, sout, serr = run("--version")
|
263
263
|
assert_eq ret, 0
|
data/test/matcher_test.rb
CHANGED
data/test/misc_test.rb
CHANGED
data/test/node_test.rb
CHANGED
data/test/reporter_test.rb
CHANGED
data/test/runner_test.rb
CHANGED
data/test/util_test.rb
CHANGED
data/test/utilhelper_test.rb
CHANGED
data/test/visitor_test.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oktest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kwatch
|
@@ -40,13 +40,12 @@ dependencies:
|
|
40
40
|
version: '1.0'
|
41
41
|
description: |
|
42
42
|
Oktest.rb is a new-style testing library for Ruby.
|
43
|
+
You can write `ok {1+1} == 2` instead of `assert_equal 2, 1+1` or
|
44
|
+
`expect(1+1).to eq 2`.
|
43
45
|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
* Filtering testcases by pattern or tags.
|
48
|
-
* Blue/red color instead of green/red for accesability.
|
49
|
-
* Small code size (about 2300 lines) and good performance.
|
46
|
+
In addition, Oktest.rb supports **Fixture injection** feature
|
47
|
+
inspired by dependency injection and **JSON Matcher** feature
|
48
|
+
similar to JSON schema.
|
50
49
|
|
51
50
|
See https://github.com/kwatch/oktest/tree/ruby/ruby for details.
|
52
51
|
email: kwatch@gmail.com
|
@@ -80,7 +79,7 @@ files:
|
|
80
79
|
- test/util_test.rb
|
81
80
|
- test/utilhelper_test.rb
|
82
81
|
- test/visitor_test.rb
|
83
|
-
homepage: https://github.com/kwatch/oktest/tree/ruby
|
82
|
+
homepage: https://github.com/kwatch/oktest/tree/ruby/ruby
|
84
83
|
licenses:
|
85
84
|
- MIT
|
86
85
|
metadata: {}
|
@@ -92,7 +91,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
92
91
|
requirements:
|
93
92
|
- - ">="
|
94
93
|
- !ruby/object:Gem::Version
|
95
|
-
version: '2.
|
94
|
+
version: '2.4'
|
96
95
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
96
|
requirements:
|
98
97
|
- - ">="
|
@@ -102,6 +101,6 @@ requirements: []
|
|
102
101
|
rubygems_version: 3.5.11
|
103
102
|
signing_key:
|
104
103
|
specification_version: 4
|
105
|
-
summary: new style testing library
|
104
|
+
summary: a new style testing library
|
106
105
|
test_files:
|
107
106
|
- test/run_all.rb
|