@@ -39,14 +39,14 @@ class ShouldCause(MetamorphicRelation):
39
39
40
40
def to_json_stub (
41
41
self ,
42
- skip : bool = True ,
42
+ skip : bool = False ,
43
43
estimate_type : str = "coefficient" ,
44
44
effect_type : str = "direct" ,
45
45
estimator : str = "LinearRegressionEstimator" ,
46
46
) -> dict :
47
47
"""
48
48
Convert to a JSON frontend stub string for user customisation.
49
- :param skip: Whether to skip the test
49
+ :param skip: Whether to skip the test (default False).
50
50
:param effect_type: The type of causal effect to consider (total or direct)
51
51
:param estimate_type: The estimate type to use when evaluating tests
52
52
:param estimator: The name of the estimator class to use when evaluating the test
@@ -77,14 +77,14 @@ class ShouldNotCause(MetamorphicRelation):
77
77
78
78
def to_json_stub (
79
79
self ,
80
- skip : bool = True ,
80
+ skip : bool = False ,
81
81
estimate_type : str = "coefficient" ,
82
82
effect_type : str = "direct" ,
83
83
estimator : str = "LinearRegressionEstimator" ,
84
84
) -> dict :
85
85
"""
86
86
Convert to a JSON frontend stub string for user customisation.
87
- :param skip: Whether to skip the test
87
+ :param skip: Whether to skip the test (default False).
88
88
:param effect_type: The type of causal effect to consider (total or direct)
89
89
:param estimate_type: The estimate type to use when evaluating tests
90
90
:param estimator: The name of the estimator class to use when evaluating the test
@@ -244,6 +244,10 @@ def generate_causal_tests(
244
244
if len (list (causal_dag .graph .predecessors (relation .base_test_case .outcome_variable ))) > 0
245
245
]
246
246
247
+ logger .warning ("The skip parameter is hard-coded to False during test generation for better integration with the "
248
+ "causal testing component (python -m causal_testing test ...)"
249
+ "Please carefully review the generated tests and decide which to skip." )
250
+
247
251
logger .info (f"Generated { len (tests )} tests. Saving to { output_path } ." )
248
252
with open (output_path , "w" , encoding = "utf-8" ) as f :
249
253
json .dump ({"tests" : tests }, f , indent = 2 )
0 commit comments