@@ -197,6 +197,7 @@ def __init__(self) -> None:
197197 self .command_line : str | None = None
198198 self .concurrency : list [str ] = []
199199 self .context : str | None = None
200+ self .core : str | None = None
200201 self .cover_pylib = False
201202 self .data_file = ".coverage"
202203 self .debug : list [str ] = []
@@ -379,6 +380,7 @@ def copy(self) -> CoverageConfig:
379380 ("command_line" , "run:command_line" ),
380381 ("concurrency" , "run:concurrency" , "list" ),
381382 ("context" , "run:context" ),
383+ ("core" , "run:core" ),
382384 ("cover_pylib" , "run:cover_pylib" , "boolean" ),
383385 ("data_file" , "run:data_file" ),
384386 ("debug" , "run:debug" , "list" ),
@@ -621,6 +623,10 @@ def read_coverage_config(
621623 debugs = os .getenv ("COVERAGE_DEBUG" )
622624 if debugs :
623625 config .debug .extend (d .strip () for d in debugs .split ("," ))
626+ # Read the COVERAGE_CORE environment variable for backward compatibility.
627+ env_core = os .getenv ("COVERAGE_CORE" )
628+ if env_core :
629+ config .core = env_core
624630
625631 # 4) from constructor arguments:
626632 config .from_args (** kwargs )
0 commit comments