Skip to content

Commit 8486d5d

Browse files
authored
README: added ruby test commands (#11296)
* README: added ruby test commands * added suggestions * single list for local and remote browsername * firefox-nightly binary location suggestion
1 parent 83859d3 commit 8486d5d

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,46 @@ To build the Ruby code run:
209209
```sh
210210
bazel build //rb/...
211211
```
212+
213+
To run unit tests:
214+
215+
```sh
216+
bazel test --cache_test_results=no --test_output=all //rb:unit-test
217+
```
218+
219+
To run tests on a browser:
220+
221+
```sh
222+
bazel test --cache_test_results=no --test_output=all //rb:<browsername>-test
223+
```
224+
225+
To run remote tests on a browser:
226+
227+
```sh
228+
bazel test --cache_test_results=no --test_output=all //rb:remote-<browsername>-test
229+
```
230+
231+
To run a particular test on a browser:
232+
233+
```sh
234+
bazel test --cache_test_results=no --test_output=all --test_arg="-e<Test_Target>" //rb:<browsername>-test
235+
```
236+
_browsername_:
237+
* chrome
238+
* edge
239+
* firefox
240+
* firefox-nightly (requires setting `ENV['FIREFOX_NIGHTLY_BINARY']` with the path to the browser executable)
241+
* safari
242+
* safari-preview
243+
244+
_Test_Target_ examples:
245+
* Selenium::WebDriver::Devtools
246+
* Selenium::WebDriver::TakesScreenshot
247+
* Selenium::WebDriver::Timeouts
248+
* Selenium::WebDriver::Chrome::Driver
249+
* Selenium::WebDriver::Firefox::Profile
250+
* Selenium::Webdriver::Remote::Driver
251+
212252
</details>
213253

214254
#### .NET

0 commit comments

Comments
 (0)