aotrautils 0.0.1201 → 0.0.1202
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.
- aotrautils/aotrautils.build.js +29 -7
- aotrautils/package.json +1 -1
aotrautils/aotrautils.build.js
CHANGED
@@ -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 (30/03/2025-01:59:56)»*/
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
5
5
|
|
6
6
|
|
@@ -824,6 +824,9 @@ aotest.run=function(testName=null,scenarioName=null){
|
|
824
824
|
console.log("WARN : No registered javascript tests to run. Aborting.");
|
825
825
|
|
826
826
|
const emptyTestsSuiteResult={
|
827
|
+
testName: testName,
|
828
|
+
scenarioName : scenarioName,
|
829
|
+
nature: "htmlsj",
|
827
830
|
global:{
|
828
831
|
type:"testsSuiteResult", childrenFailed:0, childrenRunned:0,
|
829
832
|
isFailed:false,
|
@@ -843,8 +846,10 @@ aotest.run=function(testName=null,scenarioName=null){
|
|
843
846
|
// Function 1, case run one test>one scenario
|
844
847
|
const runOneTestOneScenario=function(chosenTestParam, chosenScenarioParam){
|
845
848
|
|
846
|
-
|
847
849
|
let scenarioResultObjLocal={
|
850
|
+
testName:chosenTestParam.name,
|
851
|
+
scenarioName:chosenScenarioParam.name,
|
852
|
+
nature: "htmlsj",
|
848
853
|
global:{
|
849
854
|
type:"scenarioResult",
|
850
855
|
childrenFailed:0,
|
@@ -923,6 +928,10 @@ aotest.run=function(testName=null,scenarioName=null){
|
|
923
928
|
if(functionDefinition && functionParametersPopulated){
|
924
929
|
|
925
930
|
|
931
|
+
// Execution measurment start :
|
932
|
+
scenarioResultObjLocal.global.executionStartTime=getNow();
|
933
|
+
|
934
|
+
|
926
935
|
// DBG
|
927
936
|
console.log("²²²²²² expectedResult",expectedResult);
|
928
937
|
|
@@ -1075,7 +1084,12 @@ aotest.run=function(testName=null,scenarioName=null){
|
|
1075
1084
|
// });
|
1076
1085
|
//
|
1077
1086
|
// }
|
1078
|
-
|
1087
|
+
|
1088
|
+
|
1089
|
+
// Execution measurment end :
|
1090
|
+
scenarioResultObjLocal.global.executionEndTime=getNow();
|
1091
|
+
|
1092
|
+
|
1079
1093
|
} else { // IF NOT (functionDefinition && functionParametersPopulated)
|
1080
1094
|
// If no function is the actual object of the test, but if all is in the expected
|
1081
1095
|
// result function (example : for UI tests !) :
|
@@ -1251,6 +1265,8 @@ aotest.run=function(testName=null,scenarioName=null){
|
|
1251
1265
|
|
1252
1266
|
// We init a new empty test result object :
|
1253
1267
|
let testResultObjLocal={
|
1268
|
+
testName:chosenTestParam.name,
|
1269
|
+
nature: "htmlsj",
|
1254
1270
|
global:{
|
1255
1271
|
type:"testResult",
|
1256
1272
|
childrenFailed:0,
|
@@ -1319,6 +1335,7 @@ aotest.run=function(testName=null,scenarioName=null){
|
|
1319
1335
|
|
1320
1336
|
// We init a new empty all tests result object :
|
1321
1337
|
let allTestsResultObjLocal={
|
1338
|
+
nature: "htmlsj",
|
1322
1339
|
global:{
|
1323
1340
|
type:"testsSuiteResult",
|
1324
1341
|
childrenFailed:0,
|
@@ -1361,6 +1378,8 @@ aotest.run=function(testName=null,scenarioName=null){
|
|
1361
1378
|
|
1362
1379
|
// We init a new empty all tests result object :
|
1363
1380
|
let allTestsResultObj={
|
1381
|
+
testName:testName,
|
1382
|
+
nature: "htmlsj",
|
1364
1383
|
global:{
|
1365
1384
|
type:"testsSuiteResult",
|
1366
1385
|
childrenFailed:0,
|
@@ -1383,6 +1402,9 @@ aotest.run=function(testName=null,scenarioName=null){
|
|
1383
1402
|
|
1384
1403
|
// We create the single child of this tests suite in the children array:
|
1385
1404
|
allTestsResultObj.children[testName]={
|
1405
|
+
testName:testName,
|
1406
|
+
scenarioName:scenarioName,
|
1407
|
+
nature: "htmlsj",
|
1386
1408
|
global:{
|
1387
1409
|
type:"testResult",
|
1388
1410
|
childrenFailed:0,
|
@@ -4826,7 +4848,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
4826
4848
|
|
4827
4849
|
|
4828
4850
|
|
4829
|
-
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (
|
4851
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (30/03/2025-01:59:56)»*/
|
4830
4852
|
/*-----------------------------------------------------------------------------*/
|
4831
4853
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
4832
4854
|
*
|
@@ -13398,7 +13420,7 @@ getAORTACClient=function(clientId=getUUID(), serverNodeOrigin="ws://127.0.0.1:40
|
|
13398
13420
|
|
13399
13421
|
|
13400
13422
|
|
13401
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (
|
13423
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (30/03/2025-01:59:56)»*/
|
13402
13424
|
/*-----------------------------------------------------------------------------*/
|
13403
13425
|
|
13404
13426
|
|
@@ -14637,7 +14659,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
14637
14659
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
14638
14660
|
|
14639
14661
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
14640
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (
|
14662
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (30/03/2025-01:59:56)»*/
|
14641
14663
|
/*-----------------------------------------------------------------------------*/
|
14642
14664
|
|
14643
14665
|
|
@@ -14781,7 +14803,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
|
|
14781
14803
|
|
14782
14804
|
|
14783
14805
|
|
14784
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (
|
14806
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (30/03/2025-01:59:56)»*/
|
14785
14807
|
/*-----------------------------------------------------------------------------*/
|
14786
14808
|
|
14787
14809
|
|
aotrautils/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "aotrautils",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.1202",
|
4
4
|
"main": "aotrautils.build.js",
|
5
5
|
"description": "A library for vanilla javascript utils (client-side) used in aotra javascript CMS",
|
6
6
|
"author": "Jeremie Ratomposon <info@alqemia.com> (https://alqemia.com)",
|