feat(pytest): use socket instead of a shitton of processes
This commit is contained in:
@@ -14,7 +14,7 @@ class TestRunner(str, Enum):
|
||||
|
||||
def get_adapter(runner: TestRunner, emit_parameterized_ids: bool) -> NeotestAdapter:
|
||||
if runner == TestRunner.PYTEST:
|
||||
from .pytest import PytestNeotestAdapter
|
||||
from .pytest_ import PytestNeotestAdapter
|
||||
|
||||
return PytestNeotestAdapter(emit_parameterized_ids)
|
||||
elif runner == TestRunner.UNITTEST:
|
||||
@@ -53,14 +53,14 @@ parser.add_argument("args", nargs="*")
|
||||
def main(argv: List[str]):
|
||||
if "--pytest-collect" in argv:
|
||||
argv.remove("--pytest-collect")
|
||||
from .pytest import collect
|
||||
from .pytest_ import collect
|
||||
|
||||
collect(argv)
|
||||
return
|
||||
|
||||
if "--pytest-extract-test-name-template" in argv:
|
||||
argv.remove("--pytest-extract-test-name-template")
|
||||
from .pytest import extract_test_name_template
|
||||
from .pytest_ import extract_test_name_template
|
||||
|
||||
extract_test_name_template(argv)
|
||||
return
|
||||
|
Reference in New Issue
Block a user