Skip to content

Implement stacked bar regression test#660

Open
mvanhorn wants to merge 1 commit intoUltraplot:mainfrom
mvanhorn:osc/642-bar-stack-test
Open

Implement stacked bar regression test#660
mvanhorn wants to merge 1 commit intoUltraplot:mainfrom
mvanhorn:osc/642-bar-stack-test

Conversation

@mvanhorn
Copy link
Copy Markdown

Summary

Replaces the skipped test_bar_stack() placeholder with a working regression test. The test creates a 2x2 subplot grid covering unstacked bars, stacked bars, unstacked area, and stacked area.

Why this matters

The skipped test was dead weight in the test suite. Stacking behavior is a core feature that should have regression coverage. This test catches regressions in both bar() and area() stacking logic.

Changes

  • ultraplot/tests/test_1dplots.py: Removed @pytest.mark.skip("TODO"), added rng fixture parameter, implemented test body with 4 subplot panels covering bar/area stacking variants.

Testing

  • Generated baseline image locally with --mpl-generate-path - renders correctly with all 4 panels showing expected stacking behavior.
  • CI will auto-generate the baseline from main and compare against the PR's output.

Fixes #642

This contribution was developed with AI assistance (Claude Code).

Replace the skipped test_bar_stack() placeholder with a real
regression test that verifies both bar and area stacking behavior
across a 2x2 subplot grid (stacked vs unstacked for each type).

Fixes Ultraplot#642
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.

Implement the skipped stacked bar regression test

1 participant