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:
- Inspect this repo and identify the PBIP / SemanticModel / TMDL folder structure.
- Create a script at tests/validate_tmdl_with_tabular_editor.py.
- The script should locate Tabular Editor on Windows, then try to load the semantic model from the repo using the Tabular Editor CLI.
- If Tabular Editor returns an error, print the full error output and exit with a non-zero status.
- If validation passes, print a clear success message.
- Add a second script or test that checks obvious static issues, such as missing TMDL files, duplicate object names, and broken references where practical.
- Add instructions to README.md explaining how to run the validation.
- 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