<commit_before># Selenium tests

Please see tests/selenium/README.md file in mediawiki/core repository.

## Usage

Set up MediaWiki-Vagrant:

    cd mediawiki/vagrant
    vagrant up
    vagrant roles enable echo
    vagrant provision

Run both mediawiki/core and Echo tests from mediawiki/core folder:

    npm run selenium

To run only Echo tests in one terminal window or tab start Chromedriver:

    chromedriver --url-base=/wd/hub --port=4444

In another terminal tab or window go to mediawiki/core folder:

    ./node_modules/.bin/wdio tests/selenium/wdio.conf.js --spec extensions/Echo/tests/selenium/specs/*.js

Run only one Echo test file from mediawiki/core:

    ./node_modules/.bin/wdio tests/selenium/wdio.conf.js --spec extensions/Echo/tests/selenium/specs/echo.js<commit_msg>When running Selenium tests, use `wd/hub`<commit_after># Selenium tests

Please see tests/selenium/README.md file in mediawiki/core repository.

## Usage

Set up MediaWiki-Vagrant:

    cd mediawiki/vagrant
    vagrant up
    vagrant roles enable echo
    vagrant provision

Run both mediawiki/core and Echo tests from mediawiki/core folder:

    npm run selenium

To run only Echo tests in one terminal window or tab start Chromedriver:

    chromedriver --url-base=wd/hub --port=4444

In another terminal tab or window go to mediawiki/core folder:

    ./node_modules/.bin/wdio tests/selenium/wdio.conf.js --spec extensions/Echo/tests/selenium/specs/*.js

Run only one Echo test file from mediawiki/core:

    ./node_modules/.bin/wdio tests/selenium/wdio.conf.js --spec extensions/Echo/tests/selenium/specs/echo.js
{'fraction_non_alphanumeric': 0.08411214953271028, 'fraction_numerical': 0.004984423676012461, 'mean_word_length': 3.536723163841808, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '4478822', 'n_tokens_mistral': 542, 'n_tokens_neox': 503, 'n_words': 160}