browserstack / phpunit-browserstack Goto Github PK
View Code? Open in Web Editor NEWSelenium examples for PHPUnit and BrowserStack Automate
Home Page: https://www.browserstack.com
Selenium examples for PHPUnit and BrowserStack Automate
Home Page: https://www.browserstack.com
Steps
composer require browserstack/browserstack-local
config/local.conf.json
composer install
composer local
Results
~/projects/wisnet/browserstack/phpunit-test/firstTest (master)$ composer local
> CONFIG_FILE=config/local.conf.json vendor/bin/phpunit tests/local_test.php
PHPUnit 4.8.36 by Sebastian Bergmann and contributors.
E
Time: 41 ms, Memory: 4.00MB
There was 1 error:
1) LocalTest
BrowserStack\LocalException: [0]:
FAILURES!
Tests: 1, Assertions: 0, Errors: 1.
Script CONFIG_FILE=config/local.conf.json vendor/bin/phpunit tests/local_test.php handling the local event returned with error code 2
~/projects/wisnet/browserstack/phpunit-test/firstTest (master)$
Steps
config/single.conf.json
composer install
composer single
Results:
~/projects/wisnet/browserstack/phpunit-test/phpunit-browserstack (master)$ composer single
> vendor/bin/phpunit tests/single_test.php
PHP Notice: Undefined variable: CONFIG in /Users/barton/projects/wisnet/browserstack/phpunit-test/phpunit-browserstack/lib/globals.php on line 8
PHP Notice: Undefined variable: CONFIG in /Users/barton/projects/wisnet/browserstack/phpunit-test/phpunit-browserstack/lib/globals.php on line 11
PHPUnit 4.8.36 by Sebastian Bergmann and contributors.
The current installation instructions simply say to update the config file, but after browsing the source, it would be a lot more useful to also make mention of the environment variable CONFIG_FILE, which would be much more useful for configuration in tools like circleci.com, as that means the package would just need to be installed and the phpunit-browserstack file could be included in version control outside of the vendor directory.
Need a release of this package on packagist.org - is there a particular reason why it isn't released there?
It seems by simply adding a name to composer.json that the package could be submitted to make it a handy package to add for integrating into browserstack.
Currently the install method is manual, which is not ideal when deploying to continuous integration tools, it would be better if it could be installed with a simple composer install
..
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.