test

1 Jan 1970

Set up a local validation loop for my Power BI PBIP/TMDL project without using MCP.

Goal: After any TMDL change, validate the semantic model before I open it in Power BI Desktop.

Tasks:

  1. Inspect this repo and identify the PBIP / SemanticModel / TMDL folder structure.
  2. Create a script at tests/validate_tmdl_with_tabular_editor.py.
  3. The script should locate Tabular Editor on Windows, then try to load the semantic model from the repo using the Tabular Editor CLI.
  4. If Tabular Editor returns an error, print the full error output and exit with a non-zero status.
  5. If validation passes, print a clear success message.
  6. Add a second script or test that checks obvious static issues, such as missing TMDL files, duplicate object names, and broken references where practical.
  7. Add instructions to README.md explaining how to run the validation.
  8. After setup, run the validation command and fix any issues until it passes.

Constraints:

  • Do not use MCP.
  • Do not require Power BI Desktop automation.
  • Do not make large unrelated model changes.
  • Prefer small, reversible changes.
  • Do not mark the task complete unless the validation command passes.

Expected command after setup: python tests/validate_tmdl_with_tabular_editor.py