Skip to content

Showing the result of validationTests as AsciiDoctor tables #66

Description

@globbestael

AsciiDoc format for report may be better

Test 1

Pasting the results in src/test/scratchbook.adoc within VS Code and looking at the preview

Results: AI_subset: HAS DIFFERENT RESULTS (first new, second old)

[cols="1,>1,>1,>1,>1,>1,>1,>1,>1,>1,>1,>1,>1", options="header", frame=all, grid=all]

|===
|   TOTAL | % dup |      TP |      FN |  Sensitivity |      TN |      FP |  Specificity |    Precision |     Accuracy |     F1 |    Time | Uniq dupl
|    3083 |       16,74% |     507 |       9 |       98,26% |    2567 |       0 |     100,00% |     100,00% |      99,70% |      99,12% |       15,61 |       218
|    3083 |       16,74% |     507 |       9 |       98,26% |    2567 |       0 |     100,00% |     100,00% |      99,70% |      99,12% |       29,00 |       218
|===

Test 2: Styling of differences

Styling cells to mark the differences is not very obvious, especially not for the preview in VS Code

adoc-ac.css: in the same folder as the scratchbook.adoc file

td:has(.red) {
  background-color: #ffcccc;
  text-align: right;
}

table, th, td {
  border: 1px solid;
}

The scratchbook.adoc file can the 1 line format. In this format the "a" cell specifier for a column (see https://docs.asciidoctor.org/asciidoc/latest/tables/format-cell-content/) cannot be used, but using "+++" at start and end of the cell content, interprets the content as HTML.

  • In preview mode the class red is interpreted bu the CSS file (red is the background color)
  • In HTML export the class red is a AsciiDoctor attribute (?) (red is the text color). This is not a name collosion where the AsciiDoctor attribute wins over the CSS class. CSS class is NOT used. But maybe the location of the CSS file is the problem.
Results: AI_subset: HAS DIFFERENT RESULTS (first new, second old)

[cols="1,>1,>1,>1,>1,>1,>1,>1,>1,>1,>1,>1,>1", options="header", frame=all, grid=all]

|===
|   TOTAL | % dup |      TP |      FN |  Sensitivity |      TN |      FP |  Specificity |    Precision |     Accuracy |     F1 |    Time | Uniq dupl
|    3083 |       16,74% |     507 |       9 |       98,26% |    2567 |       0 |     100,00% |     100,00% |      99,70% |      99,12% |+++<span class='red'>15,61</span>+++|       218
|    3083 |       16,74% |     507 |       9 |       98,26% |    2567 |       0 |     100,00% |     100,00% |      99,70% |      99,12% |+++<span class='red'>29,00</span>+++|       218
|===

Working with the default, multiline format and the "a" cell specifier for the column, makes no difference. The "a" (without the "+++" as part of the content) has no effect.

Results: AI_subset: HAS DIFFERENT RESULTS (first new, second old)

[cols="1,>1,>1,>1,>1,>1,>1,>1,>1,>1,>1,>1,>1", options="header", frame=all, grid=all]

|===
|   TOTAL | % dup |      TP |      FN |  Sensitivity |      TN |      FP |  Specificity |    Precision |     Accuracy |     F1 |    Time | Uniq dupl

|    3083 
|       16,74% 
|     507 
|       9 
|       98,26% 
|    2567 
|       0 
|     100,00% 
|     100,00% 
|      99,70% 
|      99,12% 
a|+++<span class='red'>15,61<span>+++ 
|       218

|    3083 
|       16,74% 
|     507 
|       9 
|       98,26% 
|    2567 
|       0 
|     100,00% 
|     100,00% 
|      99,70% 
|      99,12% 
a|+++<span class='red'>29,00</span>+++
|       218
|===

Working with docinfo files didn't work for preview.

#62 TODO
Check if the HTML export finds and uses the CSS file in the same folder as the adoc file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions