diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 1b36431..2a0b2da 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -101,7 +101,9 @@ jobs: with: name: functional-summary - name: Inject Functional JSON into site - run: sed -i $'/FUNCTIONAL_SUMMARY_JSON/ { r build/reports/creek/functional-summary.json\nd }' docs/_docs/* + run: | + sed -i $'/FUNCTIONAL_SUMMARY_JSON/ { r build/reports/creek/functional-summary.json\nd }' docs/_docs/* + cat build/reports/creek/per-draft.md >> "docs/_docs/2. functional.md" - name: Build with Jekyll # Outputs to the './docs/_site' directory by default run: (cd docs && bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}") diff --git a/docs/_docs/2. functional.md b/docs/_docs/2. functional.md index 32697e0..53d5b0d 100644 --- a/docs/_docs/2. functional.md +++ b/docs/_docs/2. functional.md @@ -51,10 +51,6 @@ Each populated cell also contains a **score**, indicating the functional complet The **score** weights test results of _required_ features at triple _optional_ features, meaning 75% of the score is reserved for _required_ features, whereas _optional_ features only account for a maximum 25% of the score. -### Detailed results - -Maybe just link to the latest build? - [//]: # (Chart scripts: https://www.chartjs.org/docs/latest/) @@ -133,4 +129,11 @@ Maybe just link to the latest build? }); -[JSON-Schema-Test-Suite]: https://github.com/json-schema-org/JSON-Schema-Test-Suite \ No newline at end of file +[JSON-Schema-Test-Suite]: https://github.com/json-schema-org/JSON-Schema-Test-Suite + +### Detailed results + +Below is a more details set of results for each specification draft an implementation supports. +Each table details the number of test cases that pass and fail for each test file in the JSON schema test suite. + +[//]: # (Do not add content below this line, or delete the line following this comment, as the build appends data to this file) diff --git a/src/main/java/org/creekservice/kafka/test/perf/testsuite/output/PerDraftSummary.java b/src/main/java/org/creekservice/kafka/test/perf/testsuite/output/PerDraftSummary.java index 8f74448..b2ce6aa 100644 --- a/src/main/java/org/creekservice/kafka/test/perf/testsuite/output/PerDraftSummary.java +++ b/src/main/java/org/creekservice/kafka/test/perf/testsuite/output/PerDraftSummary.java @@ -58,7 +58,13 @@ public PerDraftSummary(final Map res public String toMarkdown() { return results.entrySet().stream() - .map(e -> "## " + e.getKey() + lineSeparator() + e.getValue().toMarkdown()) + .map( + e -> + "#### " + + e.getKey() + + lineSeparator() + + lineSeparator() + + e.getValue().toMarkdown()) .collect(Collectors.joining(lineSeparator())); }