@@ -22,7 +22,13 @@ def _test_command(
2222 path : Path , config : Config , context : MutableMapping [str , Any ]
2323) -> Iterable [str ]:
2424 coverage_command = (
25- ["coverage" , "run" , "-a" , f"--rcfile={ config .root / 'pyproject.toml' } " , "-m" ]
25+ [
26+ "coverage" ,
27+ "run" ,
28+ "-a" ,
29+ f"--rcfile={ config .root_path / 'pyproject.toml' } " ,
30+ "-m" ,
31+ ]
2632 if context ["coverage" ]
2733 else []
2834 )
@@ -33,7 +39,7 @@ def _test_command(
3339def _unit_tests (
3440 session : Session , config : Config , context : MutableMapping [str , Any ]
3541) -> None :
36- command = _test_command (config .root / "test" / "unit" , config , context )
42+ command = _test_command (config .root_path / "test" / "unit" , config , context )
3743 session .run (* command )
3844
3945
@@ -49,7 +55,7 @@ def _integration_tests(
4955 # - Catch exceptions and ensure post-hooks run before exiting
5056 # - Consider making the executed command(s) configurable via a plugin hook
5157 # (The default implementation of the hook could provide the current implementation)
52- command = _test_command (config .root / "test" / "integration" , config , context )
58+ command = _test_command (config .root_path / "test" / "integration" , config , context )
5359 session .run (* command )
5460
5561 # run post integration test plugins
@@ -67,7 +73,7 @@ def _coverage(
6773 session : Session , config : Config , context : MutableMapping [str , Any ]
6874) -> None :
6975 command = ["coverage" , "report" , "-m" ]
70- coverage_file = config .root / ".coverage"
76+ coverage_file = config .root_path / ".coverage"
7177 coverage_file .unlink (missing_ok = True )
7278 _unit_tests (session , config , context )
7379 _integration_tests (session , config , context )
0 commit comments