def pytest_addoption(parser):
    """
    Configuration of pytest parsing
    """
    group = parser.getgroup('general')
    group.addoption('--seq-config', default=None, action='store', help=
        'Test file config')
    group.addoption('--sn', action='store', default='test', help=
        'Sample serial number or name')
    group.addoption('--wooqi', action='store_true', dest='wooqi tag', help=
        'wooqi tag to check if the test is runned thanks to wooqi')
    group = parser.getgroup('rerunfailures',
        're-run failing tests to eliminate flaky failures')
    group._addoption('--wooqi_reruns', action='store', dest='reruns', type=
        'int', default=0, help=
        'number of times to re-run failed tests. defaults to 0.')
    group = parser.getgroup('general')
    group.addoption('--wooqi_spec', action='store_true', dest='spec', help=
        'Print test result in specification format')
    parser.addini('spec_header_format', default='{path}::{class_name}',
        help='The format of the test headers when using the spec plugin')
    parser.addini('spec_test_format', default='[{result}]  {name}', help=
        'The format of the test results when using the spec plugin')
