Skip to content

A script to export differences between many yaml files

License

Notifications You must be signed in to change notification settings

devitcn/yaml-diff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yaml Diff

A script to export differences between many yaml files

Build

mvn package

To Use

By Code

@Test
public void shoult_show_1_different() {
  List<String> files = Arrays.asList("application.yml", "application-sit.yml", "application-uat.yml");

  List<File> files1 = files.stream().map(it -> new File("src/test/resources/" + it))
      .collect(Collectors.toList());
  YamlDiff diff = new YamlDiff();
  DiffData table = diff.diff(files1);


  assertThat(table.getColumns().size(), is(3));
  assertThat(table.getTable().rowKeySet().size(), is(1));

  HtmlReport.htmlTable(table.getTable(), table.getColumns(), new File("report.html"));
}  

By UI

mvn -X javafx:run

License

Apache License Version 2.0

About

A script to export differences between many yaml files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published