Skip to content

Instantly share code, notes, and snippets.

@manno
Created August 28, 2024 13:49
Show Gist options
  • Save manno/9ca55e71a0a72bae6307fdee57ecf0f1 to your computer and use it in GitHub Desktop.
Save manno/9ca55e71a0a72bae6307fdee57ecf0f1 to your computer and use it in GitHub Desktop.
ginkgo run -r -vv --skip ".*" --json-report e2e.json ./e2e
ruby -rjson -e 'j=JSON.parse(File.read("e2e.json")); j.each { |s| [main][upstream]
puts "# " + s["SuiteDescription"];
puts s["SpecReports"].collect { |r|
l = r["ContainerHierarchyLabels"].flatten.join(", "); l = " <sup>(#{l})</sup>" unless l.empty?;
"* __" + r["ContainerHierarchyTexts"][0] + "__: " + r["ContainerHierarchyTexts"][1..-1].join(" ") + l
};
puts "\n---" };' > tests.md; open tests.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment