Skip to content

go-echarts/go-echarts-pipeline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

30 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

go-echarts-pipeline

๐Ÿ„๏ธ The integration pipeline for go-echarts.

The go-echarts-pipeline is made for the integration test.

How to

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>

-------------------------------

License

MIT @Koooooo-7

About

๐Ÿ„๏ธ The integration pipeline for go-echarts.

Resources

License

Stars

Watchers

Forks

Languages