Commit 549ac245 authored by Grant Young's avatar Grant Young

Merge branch 'remove-comparison-wiki-for-single-result' into 'master'

Remove comparison text from environment results in Wiki

See merge request !150
parents b2ddf57e f525eaaf
......@@ -76,11 +76,12 @@ results_unsorted = results_files.map { |results_file| JSON.parse(File.read(resul
results_list = Naturally.sort_by(results_unsorted) { |results| results['version'] }
raise "\nNo results found in specified path(s):\n#{@opts[:results_path]}\nExiting..." if results_list.empty?
results_comparision_data = get_comparision_data(results_list)
results_comparision_table = generate_comparision_table(results_comparision_data)
results_comparision_contents = results_list.length > 1 ? "[[_TOC_]]\n" : ""
results_comparision_contents << "## Comparisions\n#{results_comparision_table}\n\nPercentages shown above are [percentage point changes](https://en.wikipedia.org/wiki/Percentage_point) calculated against the ideal target of 500ms unless specified otherwise.\n" if results_comparision_table
if results_list.length > 1
results_comparision_data = get_comparision_data(results_list)
results_comparision_table = generate_comparision_table(results_comparision_data)
results_comparision_contents << "## Comparisions\n#{results_comparision_table}\n\nPercentages shown above are [percentage point changes](https://en.wikipedia.org/wiki/Percentage_point) calculated against the ideal target of 500ms unless specified otherwise.\n"
end
results_list.each do |results|
results_summary = RunK6.generate_results_summary(results_json: results)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment