testilo 33.2.1 → 33.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -3
- package/package.json +1 -1
- package/procs/digest/tdp40/index.js +1 -1
package/README.md
CHANGED
|
@@ -794,11 +794,15 @@ When a user invokes `summarize` in this example, the `call` module:
|
|
|
794
794
|
- creates a _summary report_, an object containing three properties: an ID, a description (here `'divisions'`), and the array of summaries.
|
|
795
795
|
- writes the summary report in JSON format to the `summarized` subdirectory of the `REPORTDIR` directory, using the ID as the base of the file name.
|
|
796
796
|
|
|
797
|
+
#### Summary reports
|
|
798
|
+
|
|
799
|
+
A summary report serves as a necessary input to the `compare` and `track` modules described below. When a user invokes the `compare` module, a summary report is produced. A module can create a summary report by invoking `compare` multiple times on different scored reports, assembling the resulting summaries into an array, and creating an object like the one the `call` module creates for a user.
|
|
800
|
+
|
|
797
801
|
### Comparison
|
|
798
802
|
|
|
799
803
|
If you use Testilo to perform a battery of tests on multiple targets, you may want a single report that compares the total scores received by the targets. Testilo can produce such a _comparison_.
|
|
800
804
|
|
|
801
|
-
The `compare` module compares the scores in a summary report.
|
|
805
|
+
The `compare` module compares the scores in a summary report. The `compare()` function of the `compare` module takes two arguments:
|
|
802
806
|
- a comparison function
|
|
803
807
|
- a summary report
|
|
804
808
|
|
|
@@ -866,7 +870,7 @@ const summaryReport = …;
|
|
|
866
870
|
const [reportID, 'main competitors', trackReport] = track(tracker, summaryReport);
|
|
867
871
|
```
|
|
868
872
|
|
|
869
|
-
The `track()` function returns an ID and an HTML tracking report that shows data for all of the results in the summary report and identifies “main competitors” as its subject. The invoking module can further dispose of the tracking report as needed.
|
|
873
|
+
The `track()` function returns, as an array, an ID and an HTML tracking report that shows data for all of the results in the summary report and identifies “main competitors” as its subject. The invoking module can further dispose of the tracking report as needed.
|
|
870
874
|
|
|
871
875
|
##### By a user
|
|
872
876
|
|
|
@@ -940,4 +944,4 @@ Work on the functionalities of Testaro and Testilo began in 2017. It was named [
|
|
|
940
944
|
|
|
941
945
|
## Etymology
|
|
942
946
|
|
|
943
|
-
“Testilo” means “testing
|
|
947
|
+
“Testilo” means “testing utility” in Esperanto.
|
package/package.json
CHANGED
|
@@ -25,7 +25,7 @@ const getScoreRow = (componentName, score) => `<tr><th>${componentName}</th><td>
|
|
|
25
25
|
// Gets a row of the issue-score-summary table.
|
|
26
26
|
const getIssueScoreRow = (summary, wcag, score, tools) => {
|
|
27
27
|
const toolList = tools.map(tool => `<code>${tool}</code>`).join(', ');
|
|
28
|
-
return `<tr><th>${summary}</th><td>${wcag}<td>${score}</td><td>${toolList}</td></tr>`;
|
|
28
|
+
return `<tr><th>${summary}</th><td class="center">${wcag}<td class="right">${score}</td><td>${toolList}</td></tr>`;
|
|
29
29
|
};
|
|
30
30
|
// Adds parameters to a query for a digest.
|
|
31
31
|
const populateQuery = (report, query) => {
|