The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
Tests for merge-yaml-migrations
This directory contains tests for the custom git merge driver merge-yaml-migrations.
Running Tests
From the repository root:
./bin/merge-yaml-migrations-test/test_merge.clj
Or using babashka:
bb bin/merge-yaml-migrations-test/test_merge.clj
Test Coverage
The tests cover:
Clean merge scenarios:
- Both branches add different changesets
- Only one branch adds changesets
Conflict scenarios:
- Both branches modify the same changeset differently
Deletion scenarios:
- One branch deletes a changeset while the other keeps it
Formatting preservation:
- Single blank lines between changesets (not double)
- Footer warning preserved from the "ours" file
- 2-space indentation maintained
- objectQuotingStrategy header preserved
Test Structure
Tests use temporary files and the clojure.test framework. Each test:
- Creates temporary YAML files for base, ours, and theirs versions
- Runs the merge driver
- Verifies the exit code and merged result
- Cleans up temp files automatically