Plugin for starting up a tunnel to crossbrowsertesting.com when running tests with Gemini
npm install gemini-cbt
> Based on original source code from https://github.com/Saulis/gemini-browserstack
npm install gemini-cbtExample configuration for your .gemini.yml
``yml
rootUrl: http://localhost:8080/home
gridUrl: http://this.address.is.ignored/so-anything-goes
system:
plugins:
cbt:
username: foo
authkey: bar
quiet: true
tunnelname: foobar
browsers:
win10_edge17:
desiredCapabilities:
browserName: 'MicrosoftEdge'
version: '17'
platform: 'Windows 10'
screenResolution: '1366x768'
record_video: 'true'
record_network: 'true'
macos10_safari11:
desiredCapabilities:
browserName: 'Safari'
version: '11'
platform: 'Mac OSX 10.13'
screenResolution: '1366x768'
`
- username for crossbrosertesting.com account
- CBT_AUTHKEY - authentication key for crossbrosertesting.com account
- CBT_ID - Add an id to test name
- CBT_QUIET - start tunnel in quiet mode
- CBT_BUILD - to associate the tests with a specific build in crossbrowsertesting.com
- CBT_TUNNEL_NAME - to create a named tunnel
- CBT_MAX_DURATION - max duration for the test
- CBT_RECORD_VIDEO - record video for tests
- CBT_RECORD_NETWORK - record network data for tests$3
Here is an example npm run update command for updating screenshots
`
CBT_USERNAME=xyz@example.com CBT_AUTHKEY=abcd123xyz CBT_BUILD="git log --pretty=format:'%h' -n 1 - date +%r" npm run update
``