You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We love [continuous integration](https://en.wikipedia.org/wiki/Continuous_integration) (CI) and [Test-Driven Development](https://en.wikipedia.org/wiki/Test-driven_development) (TDD) at SerpApi.
34
+
We use RSpec and Github Actions to test our infrastructure around the clock, and that includes all changes to our clients.
35
+
36
+
The directory spec/ includes specification which serves the dual purposes of examples and functional tests.
37
+
38
+
Set your secret API key in your shell before running a test.
39
+
The SerpApi key can be obtained from [serpapi.com/signup](https://serpapi.com/users/sign_up?plan=free).
40
+
```bash
41
+
export SERPAPI_KEY="your_secret_key"
42
+
```
43
+
Install testing dependency
44
+
```bash
45
+
$ bundle install
46
+
# or
47
+
$ rake dependency
48
+
```
49
+
50
+
Check code quality using Lint.
51
+
```bash
52
+
$ rake lint
53
+
```
54
+
55
+
Run basic test
56
+
```bash
57
+
$ rake test
58
+
```
59
+
60
+
Run tests with code coverage
61
+
```bash
62
+
$ rake coverage
63
+
```
64
+
65
+
Review coverage report generated by `rake coverage`
66
+
```sh
67
+
# Current coverage: 98.68% (75 / 76 lines)
68
+
open coverage/index.html
69
+
```
70
+
71
+
Review documentation generated by `rake doc`
72
+
```sh
73
+
open doc/index.html
74
+
```
75
+
76
+
Run full regression test suite on the examples.
77
+
```bash
78
+
rake regression
79
+
```
80
+
81
+
Test the actuall packaged gem locally using the demo scripts.
- executes a scalable search on `engine: "google"` using the search query: `q: "coffee"`.
1165
-
- parses the messy HTML responses from Google on the backend.
1166
-
- returns a standardized JSON response.
1167
-
The class SerpApi::Client (client side / ruby):
1168
-
- Format the request to SerpApi.com server.
1169
-
- Execute HTTP Get request.
1170
-
- Parse JSON into Ruby Hash using a standard JSON library.
1171
-
Et voila!
1172
-
1173
-
## Continuous integration
1174
-
We love [continuous integration](https://en.wikipedia.org/wiki/Continuous_integration) (CI) and [Test-Driven Development](https://en.wikipedia.org/wiki/Test-driven_development) (TDD) at SerpApi.
1175
-
We use RSpec and Github Actions to test our infrastructure around the clock, and that includes all changes to our clients.
1176
-
1177
-
The directory spec/ includes specification which serves the dual purposes of examples and functional tests.
1178
-
1179
-
Set your secret API key in your shell before running a test.
1180
-
The SerpApi key can be obtained from [serpapi.com/signup](https://serpapi.com/users/sign_up?plan=free).
1181
-
```bash
1182
-
export SERPAPI_KEY="your_secret_key"
1183
-
```
1184
-
Install testing dependency
1185
-
```bash
1186
-
$ bundle install
1187
-
# or
1188
-
$ rake dependency
1189
-
```
1190
-
1191
-
Check code quality using Lint.
1192
-
```bash
1193
-
$ rake lint
1194
-
```
1195
-
1196
-
Run basic test
1197
-
```bash
1198
-
$ rake test
1199
-
```
1200
-
1201
-
Run tests with code coverage
1202
-
```bash
1203
-
$ rake coverage
1204
-
```
1205
-
1206
-
Review coverage report generated by `rake coverage`
1207
-
```sh
1208
-
# Current coverage: 98.68% (75 / 76 lines)
1209
-
open coverage/index.html
1210
-
```
1211
-
1212
-
Review documentation generated by `rake doc`
1213
-
```sh
1214
-
open doc/index.html
1215
-
```
1216
-
1217
-
Run full regression test suite on the examples.
1218
-
```bash
1219
-
rake regression
1220
-
```
1221
-
1222
-
Test the actuall packaged gem locally using the demo scripts.
1223
-
```bash
1224
-
$ rake oobt
1225
-
```
1226
-
1227
-
Open ./Rakefile for more information.
1100
+
## Contributing
1228
1101
1229
-
Contributions are welcome. Feel free to submit a pull request!
1102
+
Contributions are welcome. Make sure to read our [contributing guide](./CONTRIBUTING.md).
- executes a scalable search on `engine: "google"` using the search query: `q: "coffee"`.
651
-
- parses the messy HTML responses from Google on the backend.
652
-
- returns a standardized JSON response.
653
-
The class SerpApi::Client (client side / ruby):
654
-
- Format the request to SerpApi.com server.
655
-
- Execute HTTP Get request.
656
-
- Parse JSON into Ruby Hash using a standard JSON library.
657
-
Et voila!
658
-
659
-
## Continuous integration
660
-
We love [continuous integration](https://en.wikipedia.org/wiki/Continuous_integration) (CI) and [Test-Driven Development](https://en.wikipedia.org/wiki/Test-driven_development) (TDD) at SerpApi.
661
-
We use RSpec and Github Actions to test our infrastructure around the clock, and that includes all changes to our clients.
662
-
663
-
The directory spec/ includes specification which serves the dual purposes of examples and functional tests.
664
-
665
-
Set your secret API key in your shell before running a test.
666
-
The SerpApi key can be obtained from [serpapi.com/signup](https://serpapi.com/users/sign_up?plan=free).
667
-
```bash
668
-
export SERPAPI_KEY="your_secret_key"
669
-
```
670
-
Install testing dependency
671
-
```bash
672
-
$ bundle install
673
-
# or
674
-
$ rake dependency
675
-
```
676
-
677
-
Check code quality using Lint.
678
-
```bash
679
-
$ rake lint
680
-
```
681
-
682
-
Run basic test
683
-
```bash
684
-
$ rake test
685
-
```
686
-
687
-
Run tests with code coverage
688
-
```bash
689
-
$ rake coverage
690
-
```
691
-
692
-
Review coverage report generated by `rake coverage`
693
-
```sh
694
-
# Current coverage: 98.68% (75 / 76 lines)
695
-
open coverage/index.html
696
-
```
697
-
698
-
Review documentation generated by `rake doc`
699
-
```sh
700
-
open doc/index.html
701
-
```
702
-
703
-
Run full regression test suite on the examples.
704
-
```bash
705
-
rake regression
706
-
```
707
-
708
-
Test the actuall packaged gem locally using the demo scripts.
709
-
```bash
710
-
$ rake oobt
711
-
```
712
-
713
-
Open ./Rakefile for more information.
714
-
715
-
Contributions are welcome. Feel free to submit a pull request!
0 commit comments