Skip to content

Reorganize adapter tests into per-adapter folders#14

Merged
nicosuave merged 3 commits intomainfrom
test-reorganization
Jan 2, 2026
Merged

Reorganize adapter tests into per-adapter folders#14
nicosuave merged 3 commits intomainfrom
test-reorganization

Conversation

@nicosuave
Copy link
Copy Markdown
Member

@nicosuave nicosuave commented Dec 24, 2025

Summary

  • Reorganize adapter tests from flat files into per-adapter folder structure
  • Each adapter now has its own directory under tests/adapters/:
    • cube/ - test_parsing.py, test_roundtrip.py, test_conversion.py, test_query.py
    • hex/ - test_parsing.py, test_roundtrip.py, test_conversion.py, test_query.py
    • lookml/ - test_parsing.py, test_roundtrip.py, test_conversion.py, test_query.py
    • metricflow/ - test_parsing.py, test_roundtrip.py, test_conversion.py, test_query.py
    • omni/ - test_parsing.py, test_roundtrip.py, test_conversion.py
    • rill/ - test_parsing.py, test_roundtrip.py, test_conversion.py, test_query.py
    • sidemantic_adapter/ - test_parsing.py
    • superset/ - test_parsing.py, test_roundtrip.py, test_conversion.py
    • bsl/ - test_parsing.py, test_roundtrip.py
  • Add semantic equivalence testing helpers for roundtrip validation
  • Remove duplicate tests that existed across files

All 782 tests pass (rebased onto main).

Merge test_<adapter>_roundtrip.py files into test_<adapter>.py for each adapter:
- Cube, MetricFlow, LookML, Hex, Rill, Superset, Omni

Changes:
- Organize each test file with clear sections: PARSING, ROUNDTRIP,
  CROSS-FORMAT CONVERSION, SIDEMANTIC CONVERSION, QUERY
- Distribute tests from test_export_adapters.py into test_cube.py
  and test_metricflow.py
- Rename test_sidemantic_adapter.py to test_sidemantic.py for consistency
- Remove redundant duplicate tests that existed across files

All 156 adapter tests pass. Net reduction of 7 tests (all were duplicates).
Split monolithic test files into folder structure:
- tests/adapters/cube/ (parsing, roundtrip, conversion, query)
- tests/adapters/hex/ (parsing, roundtrip, conversion, query)
- tests/adapters/lookml/ (parsing, roundtrip, conversion, query)
- tests/adapters/metricflow/ (parsing, roundtrip, conversion, query)
- tests/adapters/omni/ (parsing, roundtrip, conversion)
- tests/adapters/rill/ (parsing, roundtrip, conversion, query)
- tests/adapters/sidemantic_adapter/ (parsing)
- tests/adapters/superset/ (parsing, roundtrip, conversion)

Each adapter now has dedicated test files by test type for better
organization and maintainability.
@nicosuave nicosuave force-pushed the test-reorganization branch from 3924ef3 to 3fd2162 Compare January 2, 2026 17:14
@nicosuave nicosuave changed the title Consolidate adapter test files Reorganize adapter tests into per-adapter folders Jan 2, 2026
@nicosuave nicosuave merged commit 0903bd2 into main Jan 2, 2026
10 checks passed
@nicosuave nicosuave deleted the test-reorganization branch January 2, 2026 17:27
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