<commit_before>This package contains a base Testcase Class that can be used to run end-to-end tests against Selenium 2 (using its Selenium 1 backward compatible Api).
Please direct *pull requests* to giorgiosironi/phpunit-selenium for automated testing upon merging. A feature branch containing all the commits you want to prose works best.

= Running the test suite =
To run the test suite for this package, you should serve selenium-1-tests via HTTP:
selenium-1-tests/ $ python -m SimpleHTTPServer 8080
and configure the constant that you will be asked for accordingly.
You also need to run a Selenium Server.
$ java -jar java -jar  selenium-server-standalone-2.x.xjar
Dependencies are managed via git submodules.
$ git submodule init
$ git submodule update
$ php run-phpunit.php
You can copy phpunit.xml.dist to phpunit.xml and setup a custom configuration for browsers.<commit_msg>Clarifies #141: how to run the test suite<commit_after>This package contains a base Testcase Class that can be used to run end-to-end tests against Selenium 2 (using its Selenium 1 backward compatible Api).
Please direct *pull requests* to giorgiosironi/phpunit-selenium for automated testing upon merging. A feature branch containing all the commits you want to prose works best.

= Running the test suite =
To run the test suite for this package, you should serve selenium-1-tests via HTTP:
selenium-1-tests/ $ python -m SimpleHTTPServer 8080
and configure the constant that you will be asked for accordingly if you do not run the server on localhost:8080.
You also need to run a Selenium Server.
$ java -jar java -jar  selenium-server-standalone-2.x.xjar
or with xvfb:
$ sudo xvfb-run java -jar bin/selenium-server-standalone-2.x.x.jar
Dependencies are managed via git submodules, so you must execute these commands once you have a clean working copy:
$ git submodule init
$ git submodule update
The tests can then be run with:
$ php run-phpunit.php
You can copy phpunit.xml.dist to phpunit.xml and setup a custom configuration for browsers, but the test suite is based on Firefox.
{'fraction_non_alphanumeric': 0.051715804736587725, 'fraction_numerical': 0.012566457225712905, 'mean_word_length': 4.4188481675392675, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1135309', 'n_tokens_mistral': 596, 'n_tokens_neox': 548, 'n_words': 297}