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 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. It can be stored as a text file.
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
- If this target list were stored as a file, its content would be this, with vertical bars separating the URLs from the descriptions:
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 (here `'divisions'`), and the array of summaries.
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
@@ -2,8 +2,10 @@
2
2
  compare.js
3
3
  Creates a comparison from a summary report.
4
4
  Arguments:
5
- 0. Comparing function.
6
- 1. Summary report.
5
+ 0. Comparison ID.
6
+ 1. Comparison description.
7
+ 2. Comparing function.
8
+ 3. Summary report.
7
9
  */
8
10
 
9
11
  // ########## FUNCTIONS
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testilo",
3
- "version": "33.4.1",
3
+ "version": "33.5.0",
4
4
  "description": "Prepares Testaro jobs and processes Testaro reports",
5
5
  "main": "call.js",
6
6
  "scripts": {
@@ -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;