Skip to content

fix(tests): clear test-floor to zero failures (15 → 0)#70

Merged
ringo380 merged 1 commit into
mainfrom
fix/test-floor-zero
May 17, 2026
Merged

fix(tests): clear test-floor to zero failures (15 → 0)#70
ringo380 merged 1 commit into
mainfrom
fix/test-floor-zero

Conversation

@ringo380
Copy link
Copy Markdown
Owner

Summary

After the tech-debt sweep (#65#68) merged, the test suite floor was 15 failures (11 fail + 4 error / 637 tests). All 15 were either UX-pass template-string drift, behavior drift, or a missing fixture path — none were real bugs.

After this PR: 0 failures, 0 errors, 14 skipped (project default).

What was fixed

Category Count Fix
Sentence vs. title case 6 Test assertions aligned to UX-pass headings (same pattern as #67)
Retitled headings 3 "Query Analysis Results" → "Grade results"; "Database Architecture Analysis" → "Connect a database"
Behavior drift 1 `/grade/` is no longer login-gated (anon trial flow); test now asserts that and that history remains login-gated
Retired CSS class 1 `grade-{letter}` retired in favor of Tailwind utilities; assert visible grade letter directly
Optimization tab labels 1 Lowercased + shortened in UX pass
Missing fixture path 4 errors ParserTestCase setUp looked for `analyzer/samples/` but logs live at repo-root `samples/`

Test plan

  • `python manage.py test analyzer` → 637 tests, 0 fail / 0 error / 14 skipped
  • `black --check` on all 6 modified files — clean

After PRs #65#68 merged, the pre-existing-failure floor was 15
(11 failures + 4 errors / 637 tests). All 15 were either UX-pass
template-string drift (sentence vs. title case, retitled headings),
behavior drift (anon trial removed login gate), or missing fixture
paths. None were real bugs.

Categories:

- test_anonymous_trial.test_anon_grade_page_shows_trial_banner (1)
  Asserted "Trial mode" — no template renders that string anywhere.
  Switched to "free grades left", which the banner does render.

- test_feedback (5)
  Title-case → sentence-case across submit form heading, update
  heading, and analytics page heading. test_feedback_button_in_results
  asserted "Provide Feedback" but the actual button on grade_results
  is labeled "Detailed feedback" (links to the same submit_feedback URL).

- test_integration (3, legacy)
  - test_authentication_required: /grade/ is no longer login-gated
    (anon trial flow); only history/account/connections require auth.
  - test_full_query_grading_workflow: "Query Analysis Results"
    retitled to "Grade results" in the UX pass.
  - test_grade_display_formatting: grade-{letter} CSS class was
    retired; grade pill now uses Tailwind utilities. Assert visible
    grade letter directly.

- test_database_analysis.test_database_analyze_get (1)
  Page heading retitled "Database Architecture Analysis" → "Connect
  a database" (#54 connection-mgmt UI).

- test_optimization.test_optimization_integration_workflow (1)
  Optimization section + tab labels lowercased and shortened.

- analyzer.tests.ParserTestCase (4 errors)
  setUp() looked for sample logs under analyzer/samples/ but they
  live at the repo-root samples/ dir. Fixed the path computation.

After this change: `python manage.py test analyzer` → 637 tests,
0 failures, 0 errors, 14 skipped.
@ringo380 ringo380 merged commit b68cf03 into main May 17, 2026
3 of 4 checks passed
@ringo380 ringo380 deleted the fix/test-floor-zero branch May 17, 2026 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant