<commit_before>This folder contains various tests for the basic application.
These tests are developed with [Codeception PHP Testing Framework](http://codeception.com/).

To run the tests, follow these steps:

1. Download Codeception([Quickstart step 1](http://codeception.com/quickstart)) and put the codeception.phar in the
   application base directory (not in this `tests` directory!).
2. Adjust the test configuration files based on your environment:
   - Configure the URL for [acceptance tests](http://codeception.com/docs/04-AcceptanceTests) in `acceptance.suite.yml`.
     The URL should point to the `index-test-acceptance.php` file that is located under the `web` directory of the application.
   - `functional.suite.yml` for [functional testing](http://codeception.com/docs/05-FunctionalTests) and
     `unit.suite.yml` for [unit testing](http://codeception.com/docs/06-UnitTests) should already work out of the box
     and should not need to be adjusted.
3. Go to the application base directory and build the test suites:
   ```
   php codecept.phar build    // rebuild test scripts, only need to be run once
   ```
4. Run the tests:
   ```
   php codecept.phar run      // run all available tests
   // you can also run a test suite alone:
   php codecept.phar run acceptance
   php codecept.phar run functional
   php codecept.phar run unit
   ```

Please refer to [Codeception tutorial](http://codeception.com/docs/01-Introduction) for
more details about writing acceptance, functional and unit tests.
<commit_msg>updated codeception docs. fixes #1558<commit_after>This folder contains various tests for the basic application.
These tests are developed with [Codeception PHP Testing Framework](http://codeception.com/).

To run the tests, follow these steps:

1. Download Codeception([Quickstart step 1](http://codeception.com/quickstart)) and put the codeception.phar in the
   application base directory (not in this `tests` directory!).
2. Adjust the test configuration files based on your environment:
   - Configure the URL for [acceptance tests](http://codeception.com/docs/04-AcceptanceTests) in `acceptance.suite.yml`.
     The URL should point to the `index-test-acceptance.php` file that is located under the `web` directory of the application.
   - `functional.suite.yml` for [functional testing](http://codeception.com/docs/05-FunctionalTests) and
     `unit.suite.yml` for [unit testing](http://codeception.com/docs/06-UnitTests) should already work out of the box
     and should not need to be adjusted.
   - If you want to run acceptance tests, you need to download [selenium standalone](http://www.seleniumhq.org/download/)
     and start it with command `java -jar {selenium-standalone-name}.jar`.
     After that you can use `WebDriver` codeception module that will connect to selenium and launch browser.
     This also allows you to use [Xvfb](https://en.wikipedia.org/wiki/Xvfb) in your tests which allows you to run tests
     without showing the running browser on the screen. There is codeception [blog post](http://codeception.com/05-24-2013/jenkins-ci-practice.html)
     that explains how it works.

3. Go to the application base directory and build the test suites:
   ```
   php codecept.phar build    // rebuild test scripts, only need to be run once
   ```
4. Run the tests:
   ```
   php codecept.phar run      // run all available tests
   // you can also run a test suite alone:
   php codecept.phar run acceptance
   php codecept.phar run functional
   php codecept.phar run unit
   ```

Please refer to [Codeception tutorial](http://codeception.com/docs/01-Introduction) for
more details about writing acceptance, functional and unit tests.

{'fraction_non_alphanumeric': 0.08849797023004059, 'fraction_numerical': 0.010284167794316644, 'mean_word_length': 3.837696335078534, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6368447', 'n_tokens_mistral': 1040, 'n_tokens_neox': 980, 'n_words': 421}