๐๏ธ The integration pipeline for go-echarts.
The
go-echarts-pipelineis made for the integration test.
In this integration test, it will clone both go-echarts/go-echarts
and go-echarts/examples repo.
The go-echarts/examples contains lots of showcases, it can be the test cases also.
Idea of this pipeline is that we can compare the generated options (with latest go-echarts codebase)
with the snapshot options (with latest go-echarts master branch) to distinguish any breaking structure/option
change.
Technically, it will mask all the random mock things such as numbers, chartID...etc and function string, then
checking the generated options must be same (same keys, same structure).
If something's wrong, it will output the diff details. i.e.
------------------------------
Compare files failed with bar.html
Find different options from generated_content to snapshot_content :
- <script type="text/javascript">
+ <script2333 type="text/javascript">
- </script>
+ </scri123pt>
-------------------------------
MIT @Koooooo-7
