<commit_before># Testing

## External dependencies

Some of the smart-answers tests require PhantomJS to be [installed on your machine
natively](https://github.com/teampoltergeist/poltergeist/blob/master/README.md#installing-phantomjs).

Smart-answers also require the govuk-content-schemas repository which can
be [cloned](https://github.com/alphagov/govuk-content-schemas) into a sibling
directory, or a directory referenced using GOVUK_CONTENT_SCHEMAS_PATH.

## Executing tests

Run all tests by executing the following:

    bundle exec rake<commit_msg>Link to regression tests docs from testing docs<commit_after># Testing

## External dependencies

Some of the smart-answers tests require PhantomJS to be [installed on your machine
natively](https://github.com/teampoltergeist/poltergeist/blob/master/README.md#installing-phantomjs).

Smart-answers also require the govuk-content-schemas repository which can
be [cloned](https://github.com/alphagov/govuk-content-schemas) into a sibling
directory, or a directory referenced using GOVUK_CONTENT_SCHEMAS_PATH.

## Executing tests

Run all tests by executing the following:

    bundle exec rake

## Regression tests

See [regression tests documentation](regression-tests.md).
{'fraction_non_alphanumeric': 0.07892595606183889, 'fraction_numerical': 0.0, 'mean_word_length': 5.542553191489362, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '2042443', 'n_tokens_mistral': 385, 'n_tokens_neox': 353, 'n_words': 112}