oktest 1.0.1 → 1.2.0
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 +5 -5
- data/README.md +443 -35
- data/Rakefile.rb +5 -2
- data/benchmark/Rakefile.rb +4 -0
- data/lib/oktest.rb +549 -72
- data/oktest.gemspec +3 -3
- data/test/assertion_test.rb +70 -5
- data/test/filter_test.rb +2 -2
- data/test/fixture_test.rb +14 -1
- data/test/generator_test.rb +1 -1
- data/test/helper_test.rb +3 -3
- data/test/initialize.rb +8 -1
- data/test/mainapp_test.rb +95 -42
- data/test/matcher_test.rb +424 -0
- data/test/misc_test.rb +5 -5
- data/test/node_test.rb +27 -4
- data/test/reporter_test.rb +56 -29
- data/test/runner_test.rb +97 -25
- data/test/tc.rb +12 -0
- data/test/util_test.rb +71 -1
- data/test/utilhelper_test.rb +84 -0
- data/test/visitor_test.rb +1 -1
- metadata +9 -8
data/Rakefile.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
|
3
3
|
###
|
4
|
-
### $Release: 1.0
|
4
|
+
### $Release: 1.2.0 $
|
5
5
|
### $Copyright: copyright(c) 2011-2021 kuwata-lab.com all rights reserved $
|
6
6
|
### $License: MIT License $
|
7
7
|
###
|
@@ -37,6 +37,8 @@ How to release:
|
|
37
37
|
$ git add -p CHANGES.md
|
38
38
|
$ git commit -m "ruby: update 'CHANGES.md'"
|
39
39
|
$ git log -1
|
40
|
+
$ cid=$(git log -1 | awk 'NR==1{print $2}')
|
41
|
+
$ echo $cid
|
40
42
|
$ rake package RELEASE=#{rel}
|
41
43
|
$ rake package:extract # confirm files in gem file
|
42
44
|
$ pushd #{proj}-#{rel}/data; find . -type f; popd
|
@@ -48,7 +50,8 @@ How to release:
|
|
48
50
|
$ git push --tags
|
49
51
|
$ rake clean
|
50
52
|
$ git checkout ruby
|
51
|
-
$ git
|
53
|
+
$ git log -1 $cid
|
54
|
+
$ git cherry-pick $cid # cherry-pick update of CHANGES.md
|
52
55
|
END
|
53
56
|
end
|
54
57
|
|
data/benchmark/Rakefile.rb
CHANGED
@@ -29,6 +29,7 @@ Oktest.scope do
|
|
29
29
|
<% for k in 1..nspecs %>
|
30
30
|
spec "#<%= k %>: 1+1 should be 2" do
|
31
31
|
ok {1+1} == 2
|
32
|
+
ok {1+1} == 2
|
32
33
|
end
|
33
34
|
<% end %>
|
34
35
|
|
@@ -54,6 +55,7 @@ RSpec.describe "Example #<%= i %>" do
|
|
54
55
|
<% for k in 1..nspecs %>
|
55
56
|
it "#<%= k %>: 1+1 should be 2" do
|
56
57
|
expect(1+1).to eq 2
|
58
|
+
expect(1+1).to eq 2
|
57
59
|
end
|
58
60
|
<% end %>
|
59
61
|
|
@@ -80,6 +82,7 @@ describe "Example #<%= i %>" do
|
|
80
82
|
<% for k in 1..nspecs %>
|
81
83
|
it "#<%= k %>: 1+1 should be 2" do
|
82
84
|
assert_equal 2, 1+1
|
85
|
+
assert_equal 2, 1+1
|
83
86
|
end
|
84
87
|
<% end %>
|
85
88
|
|
@@ -107,6 +110,7 @@ class Example_<%= n %>_<%= i %>_TC < Test::Unit::TestCase
|
|
107
110
|
def test_<%= n %>_<%= i %>_<%= j %>_<%= k %>()
|
108
111
|
#assert 1+1 == 2
|
109
112
|
assert_equal 2, 1+1
|
113
|
+
assert_equal 2, 1+1
|
110
114
|
end
|
111
115
|
<% end %>
|
112
116
|
|