testilo 33.4.1 → 33.5.0
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 +3 -8
- package/compare.js +4 -2
- package/package.json +1 -1
- package/procs/compare/tcp40/index.js +2 -2
- package/procs/score/tic41.js +8732 -0
package/README.md
CHANGED
|
@@ -58,7 +58,7 @@ Testilo can, however, make job preparation more efficient in these scenarios:
|
|
|
58
58
|
|
|
59
59
|
### Target lists
|
|
60
60
|
|
|
61
|
-
The simplest version of a list of targets is a _target list_. It is an array of arrays defining 1 or more targets.
|
|
61
|
+
The simplest version of a list of targets is a _target list_. It is an array of arrays defining 1 or more targets.
|
|
62
62
|
|
|
63
63
|
A target is defined by 2 items:
|
|
64
64
|
- A description
|
|
@@ -73,12 +73,7 @@ For example, a target list might be:
|
|
|
73
73
|
]
|
|
74
74
|
```
|
|
75
75
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
```text
|
|
79
|
-
World Wide Web Consortium|https://www.w3.org/
|
|
80
|
-
Mozilla Foundation|https://foundation.mozilla.org/en/
|
|
81
|
-
```
|
|
76
|
+
A target list can be represented by a text file, in which each target is specified on a line with a Tab character delimiting its description and its URL, which are not quoted.
|
|
82
77
|
|
|
83
78
|
### Batches
|
|
84
79
|
|
|
@@ -791,7 +786,7 @@ When a user invokes `summarize` in this example, the `call` module:
|
|
|
791
786
|
- gets all the reports in the `scored` subdirectory of the `REPORTDIR` directory, or (if the third argument is present) all those whose file names begin with `2411`.
|
|
792
787
|
- creates a summary of each report.
|
|
793
788
|
- combines the summaries into an array.
|
|
794
|
-
- creates a _summary report_, an object containing three properties: an ID, a description
|
|
789
|
+
- creates a _summary report_, an object containing three properties: `id` (an ID), `what` (a description, such as `'divisions'`), and `summaries` (the array of summaries).
|
|
795
790
|
- 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
791
|
|
|
797
792
|
#### Summary reports
|
package/compare.js
CHANGED
package/package.json
CHANGED
|
@@ -21,7 +21,7 @@ const getMaxScore = summaryReport => summaryReport.summaries.reduce(
|
|
|
21
21
|
(max, result) => Math.max(max, result.score), 0
|
|
22
22
|
);
|
|
23
23
|
// Converts summary report data to a table body.
|
|
24
|
-
const getTableBody = async summaryReport => {
|
|
24
|
+
const getTableBody = exports.getTableBody = async summaryReport => {
|
|
25
25
|
const maxScore = getMaxScore(summaryReport);
|
|
26
26
|
const rows = summaryReport.summaries
|
|
27
27
|
.sort((a, b) => a.score - b.score)
|
|
@@ -39,7 +39,7 @@ const getTableBody = async summaryReport => {
|
|
|
39
39
|
return rows.join(innestJoiner);
|
|
40
40
|
};
|
|
41
41
|
// Populates a query for a comparative table.
|
|
42
|
-
const populateQuery = async (id, what, summaryReport, query) => {
|
|
42
|
+
const populateQuery = exports.populateQuery = async (id, what, summaryReport, query) => {
|
|
43
43
|
query.id = id;
|
|
44
44
|
query.what = what;
|
|
45
45
|
query.pageCount = summaryReport.summaries.length;
|