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
result = client.call("user_find", ["admin"], { all:true })
178
+
puts result.dig("result", "count")
179
+
```
180
+
181
+
The client will automatically authenticate if no session exists.
121
182
122
183
## Development
123
184
124
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
185
+
After checking out the repo, run `bin/setup` to install dependencies.
186
+
187
+
### Running Tests
188
+
189
+
To run the test suite with coverage:
190
+
191
+
```bash
192
+
bin/test
193
+
```
194
+
195
+
This will run all tests and generate a coverage report in `coverage/index.html`. The test suite includes:
196
+
- Line coverage tracking
197
+
- Branch coverage tracking
198
+
- VCR cassettes for testing against FreeIPA sandbox
199
+
200
+
You can also run tests using rake:
201
+
202
+
```bash
203
+
rake test
204
+
```
205
+
206
+
### Other Development Commands
207
+
208
+
-`bin/console` - Interactive prompt for experimentation
209
+
-`bundle exec rake install` - Install gem onto your local machine
210
+
-`bundle exec rubocop` - Run code style checks
125
211
126
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
212
+
To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
0 commit comments