bucky-core 0.9.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.
Files changed (100) hide show
  1. checksums.yaml +7 -0
  2. data/.circleci/config.yml +66 -0
  3. data/.codeclimate.yml +48 -0
  4. data/.dockerignore +11 -0
  5. data/.gitignore +40 -0
  6. data/.rspec +3 -0
  7. data/.rubocop.yml +76 -0
  8. data/.rubocop_todo.yml +51 -0
  9. data/Dockerfile +38 -0
  10. data/Dockerfile.system-test +44 -0
  11. data/Gemfile +4 -0
  12. data/Gemfile.lock +115 -0
  13. data/LICENSE +201 -0
  14. data/README.md +246 -0
  15. data/Rakefile +8 -0
  16. data/bin/console +15 -0
  17. data/bin/setup +8 -0
  18. data/bucky-core.gemspec +47 -0
  19. data/docker-compose.dev-with-bm.yml +28 -0
  20. data/docker-compose.dev.yml +18 -0
  21. data/docker-compose.system-test.yml +21 -0
  22. data/docker/nginx/Dockerfile +7 -0
  23. data/docker/nginx/nginx.conf +22 -0
  24. data/docker/nginx/public/index.html +19 -0
  25. data/docker/nginx/public/test_page.html +12 -0
  26. data/exe/bucky +214 -0
  27. data/lib/bucky.rb +3 -0
  28. data/lib/bucky/core/database/db_connector.rb +29 -0
  29. data/lib/bucky/core/database/test_data_operator.rb +195 -0
  30. data/lib/bucky/core/exception/bucky_exception.rb +39 -0
  31. data/lib/bucky/core/report/screen_shot_generator.rb +24 -0
  32. data/lib/bucky/core/test_core/test_case_loader.rb +162 -0
  33. data/lib/bucky/core/test_core/test_class_generator.rb +129 -0
  34. data/lib/bucky/core/test_core/test_manager.rb +70 -0
  35. data/lib/bucky/core/test_core/test_result.rb +92 -0
  36. data/lib/bucky/test_equipment/evidence/evidence_generator.rb +36 -0
  37. data/lib/bucky/test_equipment/pageobject/base_pageobject.rb +55 -0
  38. data/lib/bucky/test_equipment/pageobject/pages.rb +61 -0
  39. data/lib/bucky/test_equipment/selenium_handler/webdriver_handler.rb +66 -0
  40. data/lib/bucky/test_equipment/test_case/abst_test_case.rb +49 -0
  41. data/lib/bucky/test_equipment/test_case/e2e_test_case.rb +70 -0
  42. data/lib/bucky/test_equipment/test_case/linkstatus_test_case.rb +28 -0
  43. data/lib/bucky/test_equipment/user_operation/user_operation_helper.rb +97 -0
  44. data/lib/bucky/test_equipment/user_operation/user_operation_logger.rb +15 -0
  45. data/lib/bucky/test_equipment/user_operation/user_operator.rb +61 -0
  46. data/lib/bucky/test_equipment/verifications/abst_verification.rb +13 -0
  47. data/lib/bucky/test_equipment/verifications/e2e_verification.rb +106 -0
  48. data/lib/bucky/test_equipment/verifications/js_error_checker.rb +23 -0
  49. data/lib/bucky/test_equipment/verifications/service_verifications.rb +62 -0
  50. data/lib/bucky/test_equipment/verifications/status_checker.rb +180 -0
  51. data/lib/bucky/tools/lint.rb +69 -0
  52. data/lib/bucky/utils/bucky_logger.rb +25 -0
  53. data/lib/bucky/utils/bucky_output.rb +23 -0
  54. data/lib/bucky/utils/config.rb +55 -0
  55. data/lib/bucky/utils/requests.rb +33 -0
  56. data/lib/bucky/utils/yaml_load.rb +24 -0
  57. data/lib/bucky/version.rb +7 -0
  58. data/system_testing/test_bucky_project/.bucky_home +2 -0
  59. data/system_testing/test_bucky_project/config/bucky_config.yml +6 -0
  60. data/system_testing/test_bucky_project/config/e2e_config.yml +15 -0
  61. data/system_testing/test_bucky_project/config/linkstatus_config.yml +3 -0
  62. data/system_testing/test_bucky_project/config/test_db_config.yml +8 -0
  63. data/system_testing/test_bucky_project/services/README.md +1 -0
  64. data/system_testing/test_bucky_project/services/service_a/pc/pageobject/index.rb +13 -0
  65. data/system_testing/test_bucky_project/services/service_a/pc/parts/index.yml +6 -0
  66. data/system_testing/test_bucky_project/services/service_a/pc/scenarios/e2e/pc_e2e.yml +68 -0
  67. data/system_testing/test_bucky_project/services/service_a/pc/scenarios/e2e/setup_each_pc_e2e.yml +20 -0
  68. data/system_testing/test_bucky_project/services/service_a/pc/scenarios/e2e/setup_teardown_each_pc_e2e.yml +35 -0
  69. data/system_testing/test_bucky_project/services/service_a/pc/scenarios/e2e/teardown_each_pc_e2e.yml +20 -0
  70. data/system_testing/test_bucky_project/services/service_a/pc/scenarios/linkstatus/pc_link.yml +10 -0
  71. data/system_testing/test_bucky_project/services/service_a/sp/pageobject/index.rb +14 -0
  72. data/system_testing/test_bucky_project/services/service_a/sp/parts/index.yml +6 -0
  73. data/system_testing/test_bucky_project/services/service_a/sp/scenarios/e2e/sp_e2e_test.yml +26 -0
  74. data/system_testing/test_bucky_project/services/service_a/sp/scenarios/linkstatus/sp_link.yml +10 -0
  75. data/system_testing/test_bucky_project/services/service_a/tablet/pageobject/index.rb +14 -0
  76. data/system_testing/test_bucky_project/services/service_a/tablet/parts/index.yml +6 -0
  77. data/system_testing/test_bucky_project/services/service_a/tablet/scenarios/e2e/tablet_e2e_test.yml +26 -0
  78. data/system_testing/test_bucky_project/system/evidences/README.md +1 -0
  79. data/system_testing/test_bucky_project/system/evidences/screen_shots/README.md +1 -0
  80. data/system_testing/test_bucky_project/system/logs/README.md +1 -0
  81. data/system_testing/test_specification.md +38 -0
  82. data/system_testing/testing_code/command.bats +42 -0
  83. data/system_testing/testing_code/e2e.bats +75 -0
  84. data/system_testing/testing_code/linkstatus.bats +24 -0
  85. data/template/make_page/pc/pageobject/sample_page.rb +23 -0
  86. data/template/make_page/pc/parts/sample_page.yml +9 -0
  87. data/template/make_page/sp/pageobject/sample_page.rb +24 -0
  88. data/template/make_page/sp/parts/sample_page.yml +9 -0
  89. data/template/make_page/tablet/pageobject/sample_page.rb +24 -0
  90. data/template/make_page/tablet/parts/sample_page.yml +9 -0
  91. data/template/new/.bucky_home +2 -0
  92. data/template/new/config/bucky_config.yml +6 -0
  93. data/template/new/config/e2e_config.yml +15 -0
  94. data/template/new/config/linkstatus_config.yml +3 -0
  95. data/template/new/config/test_db_config.yml +8 -0
  96. data/template/new/services/README.md +1 -0
  97. data/template/new/system/evidences/README.md +1 -0
  98. data/template/new/system/evidences/screen_shots/README.md +1 -0
  99. data/template/new/system/logs/README.md +1 -0
  100. metadata +415 -0
data/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
data/README.md ADDED
@@ -0,0 +1,246 @@
1
+ # Bucky-Core
2
+
3
+ ## Overview
4
+
5
+ Bucky is a testing framework that supports web system testing life cycle.
6
+
7
+ ## Feature
8
+
9
+ * Run tests in parallel
10
+ * Re-run tests which failed last time
11
+ * Support test code in YAML
12
+ * Multiple browser supported (Currently only Chrome is supported)
13
+ * Customizable test categories
14
+ * [Default] E2E: E2E (End to End) tests including JavaScript error check
15
+ * [Default] Linkstatus: http status code check in web page
16
+ * Making test Report with [bucky-management](https://github.com/lifull-dev/bucky-management)
17
+
18
+
19
+ ## Setup
20
+
21
+ ### Install
22
+ ```bash
23
+ gem install bucky-core
24
+ ```
25
+
26
+ ### Implement test code
27
+ ```bash
28
+ # Make project directory
29
+ bucky new {your_project_name}
30
+
31
+ # Make service directory
32
+ bucky make service {your_service_name}
33
+
34
+ # Make page object(.rb) and part(.yml) in device directory
35
+ ## PC
36
+ bucky make page {page_name} --service {your_service_name} --device pc
37
+ ## Smart phone
38
+ bucky make page {page_name} --service {your_service_name} --device sp
39
+ ## Tablet
40
+ bucky make page {page_name} --service {your_service_name} --device tablet
41
+
42
+ # Write your test code in following directory:
43
+ # services/{your_service_name}/{device}/scenarios/e2e/
44
+ # services/{your_service_name}/{device}/scenarios/linkstatus/
45
+
46
+ # Some samples are at bottom of Usage
47
+ vim services/first_serive/pc/scenarios/e2e/test_code.yml
48
+ ```
49
+
50
+ ### Set connecting information for database
51
+
52
+ ```bash
53
+ export BUCKY_DB_USERNAME="{your database username}"
54
+ export BUCKY_DB_PASSWORD="{your database password}"
55
+ export BUCKY_DB_HOSTNAME="{your database hostname}"
56
+ export BUCKY_DB_NAME="{your database name}"
57
+ ```
58
+
59
+ ## Usage
60
+
61
+ ### Run test
62
+ ```bash
63
+ # Condition filter using option
64
+ bucky run --test_category e2e --device sp --priority high
65
+ bucky run --test_category e2e --case login
66
+ bucky run --test_category e2e -D tablet --priority high
67
+ bucky run --test_category e2e -D pc --label foo,bar,baz --priority high
68
+ # Run test in debug mode (It won't insert test result into DB)
69
+ bucky run -t e2e -d
70
+ # Use -r to run more times for flaky test
71
+ # It will only run tests that failed in last count
72
+ bucky run --test_category e2e --re_test_count 3
73
+ bucky run -t linkstatus -s bukken_detail -D pc -r 3
74
+ # Use environment variables in test
75
+ ENV_FOO=foo bucky run -t e2e -d
76
+
77
+ # Options:
78
+ -d, --debug # Won't insert test result into DB
79
+ -t, --test_category TEST_CATEGORY
80
+ -s, --suite_name SUITE_NAME
81
+ -S, --service SERVICE
82
+ -c, --case CASE_NAME
83
+ -D, --device DEVICE
84
+ -p, --priority PRIORITY
85
+ -r, --re_test_count RE_TEST_COUNT # How many round you run tests
86
+ -l, --label LABEL_NAME
87
+ -m, --link_check_max_times MAX_TIMES # Works only with which category is linkstatus
88
+ ```
89
+
90
+ ### Rerun test
91
+ ```bash
92
+ # Only work with saved test result
93
+ # Rerun from job id
94
+ bucky rerun -j 100
95
+ bucky rerun -j 100 -r 3
96
+
97
+ # Options:
98
+ -d, --debug # Won't insert test result into DB
99
+ -r, --re_test_count RE_TEST_COUNT # How many round you run tests
100
+ -j, --job_id JOB_ID
101
+ ```
102
+
103
+ #### Sample E2E test_code.yml
104
+
105
+ * You can use erb notation in test code
106
+ * [Operation list](https://github.com/lifull-dev/bucky-core/blob/master/lib/bucky/test_equipment/user_operation/user_operation_helper.rb)
107
+ * [Verification list](https://github.com/lifull-dev/bucky-core/blob/master/lib/bucky/test_equipment/verifications/e2e_verification.rb)
108
+
109
+ ```yaml
110
+ desc: suite description
111
+ device: pc
112
+ service: service_name
113
+ priority: high
114
+ test_category: e2e
115
+ labels: test_label_foo
116
+ setup_each: # Thess procedures will be executed before every case
117
+ procs:
118
+ - proc: login
119
+ exec:
120
+ operate: go
121
+ url: https://example.com/login
122
+ teardown_each: # These procedures will be executed after every case
123
+ procs:
124
+ - proc: login
125
+ exec:
126
+ operate: go
127
+ url: https://example.com/logout
128
+
129
+ cases:
130
+ - case_name: test_code_1 # Suite filename + number
131
+ func: inquire button
132
+ desc: case description
133
+ labels:
134
+ - test_label_bar
135
+ - test_label_baz
136
+ procs:
137
+ - proc: open page
138
+ exec:
139
+ operate: go
140
+ url: http://example.com/
141
+ - proc: open page
142
+ exec:
143
+ operate: go
144
+ url: <%= ENV['FQDN'] %>/results # Using erb notation to get environment variable
145
+ - proc: element click
146
+ exec:
147
+ operate: click
148
+ page: top
149
+ part: next_page
150
+ when: <%= ENV['STAGE'] == development %> # Executing this proc when this condition is true
151
+ - proc: one of elements click # Using xpaths
152
+ exec:
153
+ operate: click
154
+ page: next_page # This file is at services/service_name/pc/parts/next_page.yml
155
+ part:
156
+ locate: many_links # many_links is a xpath that describe in services/service_name/pc/parts/next_page.yml
157
+ num: 0 # You can choose number of element when xpath have multiple elements
158
+ - proc: switch tab
159
+ exec:
160
+ operate: switch_next_window
161
+ - proc: select by drop down
162
+ exec:
163
+ operate: choose
164
+ page: input_page
165
+ part: age
166
+ text: 20
167
+ - proc: alert accept
168
+ exec:
169
+ operate: alert_accept
170
+ - exec:
171
+ operate: wait
172
+ sec: 2
173
+ - exec: # You can stop your test by using stop operator
174
+ operate: stop
175
+ - proc: check message
176
+ exec:
177
+ verify: assert_text
178
+ page: input_thanks
179
+ part: complete_message
180
+ expect: done
181
+ - proc: check message
182
+ exec:
183
+ verify: assert_contained_text
184
+ page: input_thanks
185
+ part: complete_message
186
+ expect: done
187
+ ```
188
+
189
+ #### Sample linkstatus test_code.yml
190
+
191
+ * linkstatus will check every \<a> tag's http response in url
192
+
193
+ ```yaml
194
+ desc: suite description
195
+ device: pc
196
+ service: service_name
197
+ priority: high
198
+ test_category: linkstatus
199
+ exclude_urls:
200
+ - https://example.com/fuga/?hoge=1 # PERFECT MATCHING
201
+ - https://example.com/fuga/* # PARTIAL MATCHING
202
+ cases:
203
+ - case_name: test_code_1 # Suite filename + number
204
+ desc: status check for top page
205
+ urls:
206
+ - https://example.com/
207
+ - https://www.example.com/
208
+ - case_name: test_code_2
209
+ desc: status check for detail page
210
+ urls:
211
+ - https://example.com/detail/1
212
+ - <%= ENV['FQDN'] %>/detail/2 # Using erb notation to get environment variable
213
+ ```
214
+
215
+ # Development
216
+
217
+ ## Development
218
+ Should always execute bucky run with -d option
219
+ ```bash
220
+ git clone git@github.com:lifull-dev/bucky-core.git
221
+ cd bucky-core
222
+ # clone from some test code
223
+ git clone git@github.com:${sample_test_code_owner}/${sample_testcode}.git .sample
224
+ docker-compose -f docker-compose.dev.yml up --build -d
225
+ docker-compose -f docker-compose.dev.yml down
226
+ ```
227
+
228
+ ## Development with bucky-management
229
+ You should start bucky-management first.
230
+
231
+ ```bash
232
+ git clone git@github.com:lifull-dev/bucky-core.git
233
+ cd bucky-core
234
+ git clone git@github.com:${sample_test_code_owner}/${sample_testcode}.git .sample
235
+ docker-compose -f docker-compose.dev-with-bm.yml up --build -d
236
+ docker-compose -f docker-compose.dev-with-bm.yml down
237
+ ```
238
+
239
+ ## Contributing
240
+
241
+ * [Naoto Kishino](https://github.com/kishinao)
242
+ * [Rikiya Hikimochi](https://github.com/hikimocr)
243
+ * [Jye Ruey](https://github.com/rueyjye)
244
+ * [Seiya Sato](https://github.com/satose)
245
+ * [Hikaru Fukuzawa](https://github.com/FukuzawaHikaru)
246
+ * [Naoki Nakano](https://github.com/NakanoNaoki)
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: :spec