auto flake and corrections
This commit is contained in:
@@ -14,23 +14,23 @@ def main():
|
||||
"""Run coverage for Coverage Gutters."""
|
||||
print("Generating coverage for Coverage Gutters...")
|
||||
print("Using the same pytest approach as CI...")
|
||||
|
||||
|
||||
try:
|
||||
# Run tests with coverage and generate all report formats (same as CI)
|
||||
cmd = [
|
||||
sys.executable, "-m", "pytest",
|
||||
"tests/",
|
||||
sys.executable, "-m", "pytest",
|
||||
"tests/",
|
||||
"-v",
|
||||
"--cov=pyWebLayout",
|
||||
"--cov=pyWebLayout",
|
||||
"--cov-report=term-missing",
|
||||
"--cov-report=json",
|
||||
"--cov-report=html",
|
||||
"--cov-report=xml"
|
||||
]
|
||||
|
||||
|
||||
print(f"Running: {' '.join(cmd)}")
|
||||
result = subprocess.run(cmd, check=True)
|
||||
|
||||
_result = subprocess.run(cmd, check=True)
|
||||
|
||||
# Check if coverage.xml was created
|
||||
if os.path.exists("coverage.xml"):
|
||||
print("✓ coverage.xml generated successfully!")
|
||||
@@ -42,14 +42,14 @@ def main():
|
||||
print("2. Run 'Coverage Gutters: Remove Coverage' (to clear cache)")
|
||||
print("3. Run 'Coverage Gutters: Display Coverage'")
|
||||
print("4. Or use the Coverage Gutters buttons in the status bar")
|
||||
|
||||
|
||||
# Show file info
|
||||
size = os.path.getsize("coverage.xml")
|
||||
print(f"\nGenerated coverage.xml: {size} bytes")
|
||||
|
||||
|
||||
else:
|
||||
print("✗ coverage.xml was not generated")
|
||||
|
||||
|
||||
except subprocess.CalledProcessError as e:
|
||||
print(f"Error running tests: {e}")
|
||||
print("This may indicate test failures or missing dependencies.")
|
||||
|
||||
Reference in New Issue
Block a user