testilo 4.0.0 → 4.0.1

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.
Files changed (2) hide show
  1. package/README.md +6 -18
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -3,10 +3,12 @@ Utilities for Testaro
3
3
 
4
4
  ## Introduction
5
5
 
6
- The Testilo package contains utilities that facilitate the use of the [Testaro package](https://www.npmjs.com/package/testaro).
6
+ The Testilo package contains utilities that facilitate the use of the [Testaro](https://www.npmjs.com/package/testaro) package.
7
7
 
8
8
  Testaro performs digital accessibility tests on web artifacts and creates reports in JSON format. The utilities in Testilo prepare jobs for Testaro to run and create additional value from the reports that Testaro produces.
9
9
 
10
+ Because Testilo supports Testaro, this `README` file presumes that you have access to the Testaro `README` file and therefore does not repeat information provided there.
11
+
10
12
  ## Dependencies
11
13
 
12
14
  The `dotenv` dependency lets you set environment variables in an untracked `.env` file. This prevents secret data, such as passwords, from being shared as part of this package.
@@ -25,23 +27,9 @@ The reason for Testilo being an independent package, rather than part of Testaro
25
27
 
26
28
  ### `merge`
27
29
 
28
- Testaro runs _jobs_. A job gives Testaro instructions.
29
-
30
- Sometimes you may want Testaro to perform a set of tests on multiple targets. The `merge` utility in Testilo facilitates this. It creates Testaro jobs out of a _script_ and a _batch_.
31
-
32
- A script tells Testaro where to go and what to do. If the where-to-go part identifies a specific URL, the script can be a job, ready for Testaro to run. But the where-to-go part can also be generic, such as `http://*.*`. Then the script needs to be converted to a job by having its generic destination replaced with a specific URL. A batch is a list of _hosts_ (URLs and metadata). Merging a batch and a script means generating from the script as many jobs as there are hosts in the batch. In each job, one host from the batch becomes the specific target.
33
-
34
- A script is a JSON file representing a `script` object, which contains a sequence of _commands_. Scripts are documented in detail in the Testaro `README.md` file.
35
-
36
- A batch is a JSON file representing a `batch` object, which contains an array of _hosts_. Each host is an object with three properties:
37
- - `id`: a string unique in the batch
38
- - `which`: a URL
39
- - `what`: a string naming the entity associated with the URL
30
+ The `merge` utility is useful when you want Testaro to perform the same set of operations on multiple hosts. For example, you may want the same tests run on multiple web pages. You would have a single script, and you would want multiple jobs created from it. Each job would target one host, and, for that purpose, any `url` command in the script would be modified so that its properties are those of that host. The `merge` utility (similar to mail merge in office applications) does this. It creates Testaro jobs out of a script and a _batch_.
40
31
 
41
- The batch as a whole also has three properties:
42
- - `id`: a string composed of ASCII letters and digits
43
- - `what`: a string describing the batch
44
- - `hosts`: an array of host objects
32
+ A batch is a JSON-format file representing a `batch` object, which contains an array of _hosts_.
45
33
 
46
34
  Here is an example of a batch:
47
35
 
@@ -83,7 +71,7 @@ Suppose that:
83
71
  - There is a script file named `testall.json`.
84
72
  - The above batch example is in a file named `usFedExec1.json`.
85
73
 
86
- The statement `node merge testall usFedExec1 allFedExec` would tell Testilo to merge the batch `../testing/batches/usFedExec1.json` and the script `../testing/scripts/testall.json` and write the two job files in `../testing/jobs/allFedExec`.
74
+ The statement `node merge testall usFedExec1 allFedExec` would tell Testilo to merge the batch `../testing/batches/usFedExec1.json` and the script `../testing/scripts/testall.json` into two job files and save those files in the directory `../testing/jobs/allFedExec`. Testilo will create any directories necessary to save the files there.
87
75
 
88
76
  ### `score`
89
77
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testilo",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "Client that scores and digests Testaro reports",
5
5
  "main": "index.js",
6
6
  "scripts": {