README.md in danger-junit-0.5.0 vs README.md in danger-junit-0.6.0

- old
+ new

@@ -38,22 +38,42 @@ junit.parse "/path/to/output.xml" junit.show_skipped_tests = true junit.report</pre> </blockquote> +<blockquote>Only show specific parts of your results + <pre> +junit.parse "/path/to/output.xml" +junit.headers = [:name, :file] +junit.report</pre> +</blockquote> +<blockquote>Only show specific parts of your results + <pre> +junit.parse "/path/to/output.xml" +all_test = junit.tests.map(&:attributes) +slowest_test = sort_by { |attributes| attributes[:time].to_f }.last +message "#{slowest_test[:time]} took #{slowest_test[:time]} seconds"</pre> +</blockquote> + + #### Attributes <tr> +`tests` - All the tests for introspection +<tr> `passes` - An array of XML elements that represent passed tests. <tr> `failures` - An array of XML elements that represent failed tests. <tr> `errors` - An array of XML elements that represent passed tests. <tr> `skipped` - An array of XML elements that represent skipped tests. <tr> `show_skipped_tests` - An attribute to make the plugin show a warning on skipped tests. +<tr> +`headers` - An array of symbols that become the columns of your tests, +if `nil`, the default, it will be all of the attribues. #### Methods