@@ -0,0 +1,1820 @@
+import pytest%0A%0Adef pytest_addoption(parser):%0A    %22%22%22%0A    Add command-line options to specify MPI and coverage configuration%0A    %22%22%22%0A    parser.addoption(%22--mpirun%22, default=None, nargs='?', const=%22mpirun -n 4%22,%0A                    help=%22launcher for MPI, e.g. mpirun -n 4%22)%0A%0A    parser.addoption(%22--no-build%22, action=%22store_true%22, default=False,%0A                    help=%22do not build the project (use system installed version)%22)%0A%0A    parser.addoption(%22--build-only%22, action=%22store_true%22, default=False,%0A                    help=%22just build, do not run any tests%22)%0A                    %0A    parser.addoption(%22--show-build-log%22, action=%22store_true%22,%0A                    help=%22show build output rather than using a log file%22)%0A%0A    parser.addoption(%22--mpisub%22, action=%22store_true%22, default=False,%0A                    help=%22run process as a mpisub%22)%0A        %0A    parser.addoption(%22--mpisub-site-dir%22, default=None, help=%22site-dir in mpisub%22)%0A    %0A    parser.addoption(%22--with-coverage%22, action=%22store_true%22, default=False,%0A                    help=%22report coverage of project code to a .coverage file%22)%0A                          %0A    parser.addoption(%22--html-cov%22, action=%22store_true%22, default=False,%0A                    help=%22write html coverage reports to build/coverage%22)%0A                          %0A    parser.addoption('--cov-config', action='store', default='.coveragerc',%0A                    metavar='path',%0A                    help=('config file for coverage, default: .coveragerc; '%0A                          'see http://coverage.readthedocs.io/en/coverage-4.3.4/config.html'))%0A    %0Adef pytest_collection_modifyitems(session, config, items):%0A    %22%22%22%0A    Modify the ordering of tests, such that the ordering will be %0A    well-defined across all ranks running%0A    %22%22%22%0A    items%5B:%5D = sorted(items, key=lambda x: str(x))%0A

add the pytest hooks that add the necessary command-line args to pytest command