diff --git a/setup.py b/setup.py index 87c2caf..d5e053d 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ name='pytest-testmon', description='automatically selects tests affected by changed files and methods', long_description='TODO', - version='1.0.0a4', + version='1.0.0', license='AGPL', platforms=['linux', 'osx', 'win32'], packages=['testmon'], diff --git a/testmon/pytest_testmon.py b/testmon/pytest_testmon.py index fd0fcb0..545afb1 100644 --- a/testmon/pytest_testmon.py +++ b/testmon/pytest_testmon.py @@ -76,14 +76,6 @@ def pytest_addoption(parser): ) - group.addoption( - "--testmon-track-dir", - action="append", - dest="project_directory", - help="Only files under this directory will be tracked. Can be repeated.", - default=None, - ) - group.addoption( "--testmon-env", action="store", @@ -105,7 +97,6 @@ def testmon_options(config): "testmon", "no-testmon", "environment_expression", - "project_directory", ]: if config.getoption(label): result.append(label.replace("testmon_", "")) @@ -115,9 +106,7 @@ def testmon_options(config): def init_testmon_data(config, read_source=True): if not hasattr(config, "testmon_data"): environment = eval_environment(config.getini("environment_expression")) - config.project_dirs = config.getoption("project_directory") or [ - config.rootdir.strpath - ] + config.project_dirs = [config.rootdir.strpath] testmon_data = TestmonData(config.project_dirs[0], environment=environment) if read_source: testmon_data.determine_stable()