testilo 3.1.3 → 3.2.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 +34 -18
- package/compare.js +38 -0
- package/digest.js +2 -1
- package/package.json +1 -1
- package/procs/compare/cp0/index.html +41 -0
- package/procs/compare/cp0/index.js +72 -0
- package/procs/digest/{tsp10a → dp10a}/index.html +13 -5
- package/procs/digest/{tsp10a → dp10a}/index.js +8 -2
- package/procs/digest/{tsp09a → tdp09a}/index.html +0 -0
- package/procs/digest/{tsp09a → tdp09a}/index.js +0 -0
- package/procs/score/{tsp10a.js → sp10a.js} +4 -3
- package/reports/comparative/35k1r-.html +41 -0
- package/reports/comparative/style.css +85 -0
- package/reports/digested/35k1r-railpass.html +8994 -5
- package/reports/digested/style.css +4 -0
- package/reports/raw/35k1r-railpass.json +6 -1
- package/reports/scored/35k1r-railpass.json +8 -3
- package/score.js +3 -2
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "35k1r-railpass",
|
|
3
|
+
"host": {
|
|
4
|
+
"id": "railpass",
|
|
5
|
+
"which": "https://www.railpass.com/",
|
|
6
|
+
"what": "Railpass"
|
|
7
|
+
},
|
|
3
8
|
"log": [
|
|
4
9
|
{
|
|
5
10
|
"event": "startTime",
|
|
@@ -11,7 +16,7 @@
|
|
|
11
16
|
}
|
|
12
17
|
],
|
|
13
18
|
"script": {
|
|
14
|
-
"id": "
|
|
19
|
+
"id": "tp10",
|
|
15
20
|
"what": "AATT, Alfa, Axe, IBM, Tenon, WAVE, and 16 custom tests",
|
|
16
21
|
"strict": true,
|
|
17
22
|
"commands": [
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "35k1r-railpass",
|
|
3
|
+
"host": {
|
|
4
|
+
"id": "railpass",
|
|
5
|
+
"which": "https://www.railpass.com/",
|
|
6
|
+
"what": "Railpass"
|
|
7
|
+
},
|
|
3
8
|
"log": [
|
|
4
9
|
{
|
|
5
10
|
"event": "startTime",
|
|
@@ -11,7 +16,7 @@
|
|
|
11
16
|
}
|
|
12
17
|
],
|
|
13
18
|
"script": {
|
|
14
|
-
"id": "
|
|
19
|
+
"id": "tp10",
|
|
15
20
|
"what": "AATT, Alfa, Axe, IBM, Tenon, WAVE, and 16 custom tests",
|
|
16
21
|
"strict": true,
|
|
17
22
|
"commands": [
|
|
@@ -8785,7 +8790,7 @@
|
|
|
8785
8790
|
"endTime": "2022-06-03T15:25:21",
|
|
8786
8791
|
"elapsedSeconds": 99,
|
|
8787
8792
|
"score": {
|
|
8788
|
-
"scoreProcID": "
|
|
8793
|
+
"scoreProcID": "sp10a",
|
|
8789
8794
|
"duplications": {
|
|
8790
8795
|
"aatt": {
|
|
8791
8796
|
"e:F77": 1,
|
|
@@ -8974,4 +8979,4 @@
|
|
|
8974
8979
|
"zIndex": 33
|
|
8975
8980
|
}
|
|
8976
8981
|
}
|
|
8977
|
-
}
|
|
8982
|
+
}
|
package/score.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
score.js
|
|
3
3
|
Testilo scoring script.
|
|
4
|
+
Usage example: node score 35k1r-railpass sp10a
|
|
4
5
|
*/
|
|
5
6
|
|
|
6
7
|
// ########## IMPORTS
|
|
@@ -8,7 +9,7 @@
|
|
|
8
9
|
// Module to keep secrets.
|
|
9
10
|
require('dotenv').config();
|
|
10
11
|
// Module to read and write files.
|
|
11
|
-
const fs = require('fs')
|
|
12
|
+
const fs = require('fs/promises');
|
|
12
13
|
|
|
13
14
|
// ########## CONSTANTS
|
|
14
15
|
|
|
@@ -32,7 +33,7 @@ const score = async () => {
|
|
|
32
33
|
scorer(report);
|
|
33
34
|
report.score.scoreProcID = scoreProcID;
|
|
34
35
|
const scoredReportJSON = JSON.stringify(report, null, 2);
|
|
35
|
-
await fs.writeFile(`${__dirname}/${reportDirScored}/${fileName}`, scoredReportJSON);
|
|
36
|
+
await fs.writeFile(`${__dirname}/${reportDirScored}/${fileName}`, `${scoredReportJSON}\n`);
|
|
36
37
|
console.log(`Report ${fileName.slice(0, -5)} scored and saved`);
|
|
37
38
|
};
|
|
38
39
|
};
|