Open ManishAradwad opened 2 months ago
I'm calling pytest using python in my code as follows:
# Construct the command command = f'cd /d "{file_dir}" && python -m pytest --json-report "{test_file_name}" -v --cov="{repo_path}" --cov-report term --cov-report html:"{repo_path}/htmlcov"' # Run the command process = subprocess.Popen( command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True, shell=True, )
I'm getting this in the text report generated, but there is no .report.json file getting saved.
.report.json
--------------------------------- JSON report --------------------------------- report saved to: .report.json
Can someone help me with this plase?
I'm calling pytest using python in my code as follows:
I'm getting this in the text report generated, but there is no
.report.json
file getting saved.Can someone help me with this plase?