Skip to content

Commit 02d47fd

Browse files
committed
add test information to readme
1 parent 0f8c153 commit 02d47fd

File tree

1 file changed

+24
-8
lines changed

1 file changed

+24
-8
lines changed

README.md

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ before submitting your pull requests.
5555
* Windows users:
5656
* Latest version of [Visual Studio](https://www.visualstudio.com/) with command line tools and build tools installed
5757
* `BAZEL_VS` environment variable should point to the location of the build tools,
58-
e.g. `C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools`
58+
e.g. `C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools`
5959
* `BAZEL_VC` environment variable should point to the location of the command line tools,
60-
e.g. `C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC`
60+
e.g. `C:\Program Files (x86)\Microsoft Visual Studio\2022\Community\VC`
6161
* `BAZEL_VC_FULL_VERSION` environment variable should contain the version of the installed command line tools,
6262
e.g. `14.27.29110`
6363
* A detailed setup guide can be seen on Jim Evan's [post](http://jimevansmusic.blogspot.com/2020/04/setting-up-windows-development.html)
@@ -200,7 +200,7 @@ twine upload bazel-bin/py/selenium-*.whl
200200
```
201201
</details>
202202

203-
#### Ruby
203+
#### Ruby
204204
<details>
205205
<summary>Click to see Ruby Build Steps</summary>
206206

@@ -249,23 +249,39 @@ _Test_Target_ examples:
249249
* Selenium::WebDriver::Firefox::Profile
250250
* Selenium::Webdriver::Remote::Driver
251251

252+
Optional Environment Variable toggles in test suite:
253+
254+
`ENV['WD_SPEC_DRIVER']` - the driver to test; either the browser name or 'remote' (gets set by Bazel)
255+
`ENV['WD_REMOTE_BROWSER']` - when 'WD_SPEC_DRIVER' is 'remote'; the name of the browser to test (gets set by Bazel)
256+
`ENV['WD_REMOTE_URL']` - url of an already running server to use for remote tests
257+
`ENV['DOWNLOAD_SERVER']` - when `WD_REMOTE_URL` not set; whether to download and use most recently released server version for remote tests
258+
`ENV['DEBUG']` - turns on verbose debugging
259+
`ENV['HEADLESS']` - for chrome, edge and firefox; runs tests in headless mode
260+
`ENV['DISABLE_BUILD_CHECK']` - for chrome and edge; whether to ignore driver and browser version mismatches (allows testing Canary builds)
261+
`ENV['CHROME_BINARY']` - path to test specific Chrome browser
262+
`ENV['EDGE_BINARY']` - path to test specific Edge browser
263+
`ENV['FIREFOX_BINARY']` - path to test specific Firefox browser
264+
252265
</details>
253266

254-
#### .NET
267+
#### .NET
255268
<details>
256269
<summary>Click to see .NET Build Steps</summary>
257270

258-
To build the .NET code run:
271+
Bazel can not build .NET, yet, but it can set up tests with:
259272

260273
```sh
261-
bazel build //dotnet/...
274+
bazel build //dotnet/test/common:chrome
262275
```
263276

264-
Also
277+
Tests can then be run with:
265278
```sh
266-
bazel build //dotnet/test/common:chrome
279+
cd dotnet
280+
dotnet test
267281
```
268282

283+
More information about running Selenium's .NET tests can be found in this [README.md](dotnet/test/README.md)
284+
269285
</details>
270286

271287

0 commit comments

Comments
 (0)