aotrautils-srv 0.0.375 → 0.0.376
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (10/12/2022-03:07:49)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -698,10 +698,10 @@ aotest.assert=function(booleanCondition, behavior){
|
|
|
698
698
|
throw "(Assert failed : evaluated condition failed instead of succeeded.)";
|
|
699
699
|
};
|
|
700
700
|
|
|
701
|
-
/*
|
|
701
|
+
/* STANDARD AOTEST RESULT :
|
|
702
702
|
* This method returns a tests results report object of the following structure :
|
|
703
703
|
*
|
|
704
|
-
|
|
704
|
+
[name]:
|
|
705
705
|
-global
|
|
706
706
|
-type:string="testsSuiteResult"
|
|
707
707
|
-childrenFailed : number
|
|
@@ -711,12 +711,16 @@ aotest.assert=function(booleanCondition, behavior){
|
|
|
711
711
|
-children
|
|
712
712
|
[name] :
|
|
713
713
|
...(IDEM)... with :
|
|
714
|
-
-type="
|
|
714
|
+
-type="testResult"
|
|
715
715
|
-children
|
|
716
716
|
[name] :
|
|
717
717
|
...(IDEM)... with :
|
|
718
|
-
-type="
|
|
719
|
-
|
|
718
|
+
-type="scenarioResult"
|
|
719
|
+
(-children // (sub-scenarii :)
|
|
720
|
+
[name] :
|
|
721
|
+
...(IDEM)... with :
|
|
722
|
+
-type="scenarioResult" )*
|
|
723
|
+
|
|
720
724
|
*
|
|
721
725
|
* */
|
|
722
726
|
|
|
@@ -740,7 +744,7 @@ aotest.run=function(testName=null,scenarioName=null){
|
|
|
740
744
|
aotest.isRunning=true;
|
|
741
745
|
|
|
742
746
|
// Function 1, case run one test>one scenario
|
|
743
|
-
|
|
747
|
+
const runOneTestOneScenario=function(chosenTestParam, chosenScenarioParam){
|
|
744
748
|
|
|
745
749
|
|
|
746
750
|
let scenarioResultObjLocal={
|
|
@@ -1145,7 +1149,7 @@ aotest.run=function(testName=null,scenarioName=null){
|
|
|
1145
1149
|
|
|
1146
1150
|
|
|
1147
1151
|
// Function 2, case run one test>all scenarii
|
|
1148
|
-
|
|
1152
|
+
const runOneTestAllScenarii=function(chosenTestParam){
|
|
1149
1153
|
|
|
1150
1154
|
|
|
1151
1155
|
// We init a new empty test result object :
|
|
@@ -1172,7 +1176,7 @@ aotest.run=function(testName=null,scenarioName=null){
|
|
|
1172
1176
|
console.log("LOG: Running all test «" + chosenTestParam.name + "» scenarii...");
|
|
1173
1177
|
|
|
1174
1178
|
|
|
1175
|
-
|
|
1179
|
+
const scenariiListLocal=chosenTestParam.scenariiList;
|
|
1176
1180
|
|
|
1177
1181
|
// // DBG
|
|
1178
1182
|
// console.log("chosenTestParam",chosenTestParam);
|
|
@@ -1210,7 +1214,7 @@ aotest.run=function(testName=null,scenarioName=null){
|
|
|
1210
1214
|
|
|
1211
1215
|
|
|
1212
1216
|
// Function 3, case run all tests>all scenarii
|
|
1213
|
-
|
|
1217
|
+
const runAllTestsAllScenarii=function(){
|
|
1214
1218
|
|
|
1215
1219
|
// TRACE
|
|
1216
1220
|
console.log("LOG: Running all tests...");
|
|
@@ -4831,7 +4835,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
4831
4835
|
|
|
4832
4836
|
|
|
4833
4837
|
|
|
4834
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (
|
|
4838
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (10/12/2022-03:07:49)»*/
|
|
4835
4839
|
/*-----------------------------------------------------------------------------*/
|
|
4836
4840
|
|
|
4837
4841
|
|
|
@@ -5912,7 +5916,7 @@ launchNodeHTTPServer=function(port, doOnConnect=null, doOnFinalizeServer=null, /
|
|
|
5912
5916
|
|
|
5913
5917
|
fs.readFile("./404.html", function(error, fileContent){
|
|
5914
5918
|
response.writeHead(200, headers);
|
|
5915
|
-
|
|
5919
|
+
response.end(fileContent, "utf-8");
|
|
5916
5920
|
});
|
|
5917
5921
|
|
|
5918
5922
|
}else {
|
aotrautils-srv/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils-srv",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.376",
|
|
4
4
|
"main": "aotrautils-srv.build.js",
|
|
5
5
|
"description": "A library for vanilla javascript utils (server-side) used in aotra javascript CMS",
|
|
6
6
|
"author": "Jeremie Ratomposon <info@alqemia.com> (https://alqemia.com)",
|