<commit_before>Development
============

Development
-----------

Use test driven development and check code style bevore pushing commits
(see `Coding Style Guideline` ).

Manually check pyflake, pep257::

    bin/check_code src/adhocracy src/adhocracy_sample

Example Vim config according to coding guideline::

    https://github.com/liqd/vim_config


Running the Testsuite
---------------------

backend unit, intergration and acceptance tests::

    bin/py.test src/adhocracy src/adhocracy_sample

frontend unit tests:

    A.  Integrated with py.test::

            bin/py.test ./src/adhocracy/adhocracy/frontend/tests/unit/

    B.  In browser ::
    
        xdg-open http://localhost:6541/frontend_static/test.html

frontend functional tests::

    bin/py.test ./src/adhocracy/adhocracy/frontend/tests/functional

frontend acceptance tests::

    bin/py.test tests_acceptance

run all tests::

    bin/py.test_run_all
<commit_msg>[R] Typofix.<commit_after>Development
============

Development
-----------

Use test driven development and check code style bevore pushing commits
(see `Coding Style Guideline` ).

Manually check pyflake, pep257::

    bin/check_code src/adhocracy src/adhocracy_sample

Example Vim config according to coding guideline::

    https://github.com/liqd/vim_config


Running the Testsuite
---------------------

backend unit, integration and acceptance tests::

    bin/py.test src/adhocracy src/adhocracy_sample

frontend unit tests:

    A.  Integrated with py.test::

            bin/py.test ./src/adhocracy/adhocracy/frontend/tests/unit/

    B.  In browser ::
    
        xdg-open http://localhost:6541/frontend_static/test.html

frontend functional tests::

    bin/py.test ./src/adhocracy/adhocracy/frontend/tests/functional

frontend acceptance tests::

    bin/py.test tests_acceptance

run all tests::

    bin/py.test_run_all

{'fraction_non_alphanumeric': 0.12753468516542155, 'fraction_numerical': 0.007470651013874066, 'mean_word_length': 2.997867803837953, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, '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': '7191489', 'n_tokens_mistral': 634, 'n_tokens_neox': 548, 'n_words': 145}