Skip to content

Commit

Permalink
Remove --testmon-track-dir. Version 1.0.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
tarpas committed Nov 19, 2019
1 parent 606bc2b commit 2d76a76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down
13 changes: 1 addition & 12 deletions testmon/pytest_testmon.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -105,7 +97,6 @@ def testmon_options(config):
"testmon",
"no-testmon",
"environment_expression",
"project_directory",
]:
if config.getoption(label):
result.append(label.replace("testmon_", ""))
Expand All @@ -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()
Expand Down

0 comments on commit 2d76a76

Please sign in to comment.