Skip to content

Commit d15716c

Browse files
committed
refactor: code quality improvements and documentation updates
Important Changes: - Updated README.md: default threshold 0.7 β†’ 0.3, test count 243 β†’ 190 - Deleted internal analysis documents from root directory Code Quality Improvements: - Added constants to tests/conftest.py (AUTH_FILE, USER_FILE, FILE_PY, UTILS_FILE) - Removed unused variable 'uncovered_percentage' in reporting.py - Fixed f-strings without placeholders in cli.py and verify_tracing.py Previous Changes (also in this commit): - Fixed all 8 reporting logic inconsistencies - Changed default threshold from 70% to 30% across codebase - Added helper methods: get_sorted_subset_duplicates(), get_duplicate_count(), get_statistics() - Standardized percentage formatting to .1% everywhere - Added metadata to all report formats (CSV, JSON, HTML) - Added informative user output with analysis parameters - Updated CLI help text with clearer descriptions - Deleted 10 redundant documentation files All 190 tests passing βœ…
1 parent 2faada9 commit d15716c

26 files changed

Lines changed: 335 additions & 3474 deletions

β€ŽREADME.mdβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![Version](https://img.shields.io/badge/version-0.2.0-blue.svg)](https://github.com/testiq-dev/testiq)
55
[![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
66
[![Test Coverage](https://img.shields.io/badge/coverage-81%25-brightgreen.svg)](htmlcov/index.html)
7-
[![Tests](https://img.shields.io/badge/tests-243%2F243%20passing-brightgreen.svg)](tests/)
7+
[![Tests](https://img.shields.io/badge/tests-190%2F190%20passing-brightgreen.svg)](tests/)
88
[![Quality](https://img.shields.io/badge/quality-A%2B%20(99.9%2F100)-brightgreen.svg)](reports/duplicates.html)
99

1010
**TestIQ v0.2.0** - An enterprise-grade Python library that analyzes test coverage to identify duplicate, redundant, and inefficient tests. Save time, reduce CI costs, and improve test suite quality with intelligent analysis.
@@ -128,7 +128,7 @@ testiq demo
128128
# Basic analysis with terminal output (text format)
129129
testiq analyze testiq_coverage.json
130130

131-
# With custom similarity threshold (default: 0.7)
131+
# With custom similarity threshold (default: 0.3)
132132
testiq analyze testiq_coverage.json --threshold 0.8
133133

134134
# Generate beautiful HTML report

β€Ždocs/PRODUCTION_READINESS.mdβ€Ž

Lines changed: 0 additions & 339 deletions
This file was deleted.

0 commit comments

Comments
Β (0)