api_mini_tester 0.1.5 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/api_mini_tester +14 -0
- data/lib/api_mini_tester/test_faker_filter.rb +6 -0
- metadata +25 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 752743d6f653d70a0cacccd9d6f77e63f73543d8
|
4
|
+
data.tar.gz: 667f63a850caf1c8a506a326a83ce1b3056d5be3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37872554d04c837db0469377e812dcce573f4e5420d9fb948e042736420349d777f4af4fdc9e3e00d0e17bfb3a395c6dc132d1dabcdfd684ab30305b30002c8b
|
7
|
+
data.tar.gz: 88aebe243a2e179c5ae3f5a456ae86adc3043bae6567929fff38d8d15092b74f8fd375139fa6781b7f064010f46aefd65e9b0f25528b290477f7c8c7f8337a97
|
data/bin/api_mini_tester
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'api_mini_tester'
|
4
|
+
|
5
|
+
begin
|
6
|
+
puts "usage: api_mini_tester [input_file.yml] [output_format]"
|
7
|
+
exit 1
|
8
|
+
end if ARGV.empty?
|
9
|
+
|
10
|
+
output_format = ARGV[1] ? ARGV[1].to_sym : :simple
|
11
|
+
|
12
|
+
suite = ApiMiniTester::TestSuite.new(ARGV[0])
|
13
|
+
suite.run_scenarios
|
14
|
+
puts suite.print_results(output_format)
|
@@ -1,9 +1,15 @@
|
|
1
1
|
require 'liquid'
|
2
2
|
require 'faker'
|
3
|
+
require 'cz_faker'
|
3
4
|
|
4
5
|
module TestFakerFilter
|
5
6
|
def fake(input)
|
6
7
|
# Not nice, but I don't know better way.
|
7
8
|
eval "Faker::#{input}" # rubocop:disable Security/Eval,Style/EvalWithLocation
|
8
9
|
end
|
10
|
+
|
11
|
+
def cz_fake(input)
|
12
|
+
# Not nice, but I don't know better way.
|
13
|
+
eval "CzFaker::#{input}" # rubocop:disable Security/Eval,Style/EvalWithLocation
|
14
|
+
end
|
9
15
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: api_mini_tester
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jindrich Skupa (@eMan)
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: builder
|
@@ -50,6 +50,26 @@ dependencies:
|
|
50
50
|
- - ">="
|
51
51
|
- !ruby/object:Gem::Version
|
52
52
|
version: 1.8.7
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: cz_faker
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - "~>"
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: 0.0.1
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 0.0.1
|
63
|
+
type: :runtime
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 0.0.1
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: 0.0.1
|
53
73
|
- !ruby/object:Gem::Dependency
|
54
74
|
name: hash_parser
|
55
75
|
requirement: !ruby/object:Gem::Requirement
|
@@ -232,10 +252,12 @@ dependencies:
|
|
232
252
|
version: 3.4.2
|
233
253
|
description: Runs automated REST API based on YAML definition
|
234
254
|
email: jindrich.skupa@gmail.com
|
235
|
-
executables:
|
255
|
+
executables:
|
256
|
+
- api_mini_tester
|
236
257
|
extensions: []
|
237
258
|
extra_rdoc_files: []
|
238
259
|
files:
|
260
|
+
- bin/api_mini_tester
|
239
261
|
- lib/api_mini_tester.rb
|
240
262
|
- lib/api_mini_tester/test_faker_filter.rb
|
241
263
|
- lib/api_mini_tester/test_formatter.rb
|