@zerooneit/expressive-tea
Version:
A REST API over Express and Typescript
285 lines • 26.4 kB
text/xml
<testsuites name="Expressive Tea Tests" tests="123" failures="0" errors="0" time="14.883">
<testsuite name="__test__/unit/helpers/server.spec.ts" errors="0" failures="0" skipped="0" timestamp="2024-04-25T04:28:42" time="1.234" tests="23">
<testcase classname="Server Helper › Extract Parameters-should return empty if target and args are undefined" name="Server Helper › Extract Parameters-should return empty if target and args are undefined" time="0.001">
</testcase>
<testcase classname="Server Helper › Extract Parameters-should return whole object if arguments are undefined" name="Server Helper › Extract Parameters-should return whole object if arguments are undefined" time="0.001">
</testcase>
<testcase classname="Server Helper › Extract Parameters-should return value of the selected parameter" name="Server Helper › Extract Parameters-should return value of the selected parameter" time="0">
</testcase>
<testcase classname="Server Helper › Extract Parameters-should return partial object from current target object" name="Server Helper › Extract Parameters-should return partial object from current target object" time="0.001">
</testcase>
<testcase classname="Server Helper › Map Arguments-should get the normal express arguments" name="Server Helper › Map Arguments-should get the normal express arguments" time="0.002">
</testcase>
<testcase classname="Server Helper › Map Arguments-should get normal express arguments if type does not exits" name="Server Helper › Map Arguments-should get normal express arguments if type does not exits" time="0">
</testcase>
<testcase classname="Server Helper › Map Arguments-should get the request object" name="Server Helper › Map Arguments-should get the request object" time="0">
</testcase>
<testcase classname="Server Helper › Map Arguments-should get the response object" name="Server Helper › Map Arguments-should get the response object" time="0.001">
</testcase>
<testcase classname="Server Helper › Map Arguments-should get the next object" name="Server Helper › Map Arguments-should get the next object" time="0">
</testcase>
<testcase classname="Server Helper › Map Arguments-should get one parameter from query object" name="Server Helper › Map Arguments-should get one parameter from query object" time="0.001">
</testcase>
<testcase classname="Server Helper › Map Arguments-should get multiple parameters from query object" name="Server Helper › Map Arguments-should get multiple parameters from query object" time="0.001">
</testcase>
<testcase classname="Server Helper › Map Arguments-should get all query object" name="Server Helper › Map Arguments-should get all query object" time="0">
</testcase>
<testcase classname="Server Helper › Map Arguments-should get one parameter from body object" name="Server Helper › Map Arguments-should get one parameter from body object" time="0.002">
</testcase>
<testcase classname="Server Helper › Map Arguments-should get multiple parameters from body object" name="Server Helper › Map Arguments-should get multiple parameters from body object" time="0.001">
</testcase>
<testcase classname="Server Helper › Map Arguments-should get all body object" name="Server Helper › Map Arguments-should get all body object" time="0">
</testcase>
<testcase classname="Server Helper › Map Arguments-should get one parameter from params object" name="Server Helper › Map Arguments-should get one parameter from params object" time="0.001">
</testcase>
<testcase classname="Server Helper › Map Arguments-should get multiple parameters from params object" name="Server Helper › Map Arguments-should get multiple parameters from params object" time="0">
</testcase>
<testcase classname="Server Helper › Map Arguments-should get all query params" name="Server Helper › Map Arguments-should get all query params" time="0.001">
</testcase>
<testcase classname="Server Helper › Auto Response-should response" name="Server Helper › Auto Response-should response" time="0.001">
</testcase>
<testcase classname="Server Helper › Auto Response-should response" name="Server Helper › Auto Response-should response" time="0.001">
</testcase>
<testcase classname="Server Helper › Auto Response-should response" name="Server Helper › Auto Response-should response" time="0">
</testcase>
<testcase classname="Server Helper › Auto Response-should response" name="Server Helper › Auto Response-should response" time="0.001">
</testcase>
<testcase classname="Server Helper › Auto Response-should response" name="Server Helper › Auto Response-should response" time="0.001">
</testcase>
</testsuite>
<testsuite name="__test__/unit/decorators/router.spec.ts" errors="0" failures="0" skipped="0" timestamp="2024-04-25T04:28:44" time="0.179" tests="13">
<testcase classname="Route Decorator-should instanciate correctly" name="Route Decorator-should instanciate correctly" time="0.001">
</testcase>
<testcase classname="Route Decorator-should register the module on express route correctly" name="Route Decorator-should register the module on express route correctly" time="0.001">
</testcase>
<testcase classname="Route Decorator-should assign handlers" name="Route Decorator-should assign handlers" time="0.001">
</testcase>
<testcase classname="Route Decorator-should default route" name="Route Decorator-should default route" time="0.002">
</testcase>
<testcase classname="Middleware Decorator-should call middleware root correctly" name="Middleware Decorator-should call middleware root correctly" time="0.001">
</testcase>
<testcase classname="Middleware Decorator-should register endpoint middleware correctly" name="Middleware Decorator-should register endpoint middleware correctly" time="0">
</testcase>
<testcase classname="Get Decorator-should call correctly the decorator" name="Get Decorator-should call correctly the decorator" time="0.001">
</testcase>
<testcase classname="Post Decorator-should call correctly the decorator" name="Post Decorator-should call correctly the decorator" time="0.001">
</testcase>
<testcase classname="Put Decorator-should call correctly the decorator" name="Put Decorator-should call correctly the decorator" time="0.001">
</testcase>
<testcase classname="Patch Decorator-should call correctly the decorator" name="Patch Decorator-should call correctly the decorator" time="0">
</testcase>
<testcase classname="Param Decorator-should call correctly the decorator" name="Param Decorator-should call correctly the decorator" time="0.001">
</testcase>
<testcase classname="Delete Decorator-should call correctly the decorator" name="Delete Decorator-should call correctly the decorator" time="0.001">
</testcase>
<testcase classname="View Decorator-should call correctly the decorator" name="View Decorator-should call correctly the decorator" time="0">
</testcase>
</testsuite>
<testsuite name="__test__/unit/decorators/server.spec.ts" errors="0" failures="0" skipped="0" timestamp="2024-04-25T04:28:44" time="0.62" tests="15">
<testcase classname="ServerSettings Decorator-should modify server settings" name="ServerSettings Decorator-should modify server settings" time="0.001">
</testcase>
<testcase classname="ServerSettings Decorator-should modify server settings as default options" name="ServerSettings Decorator-should modify server settings as default options" time="0">
</testcase>
<testcase classname="Pour Decorator-should attach plug to respective level" name="Pour Decorator-should attach plug to respective level" time="0">
</testcase>
<testcase classname="Pour Decorator-should attach plug to respective level with arguments" name="Pour Decorator-should attach plug to respective level with arguments" time="0.002">
</testcase>
<testcase classname="Setting Decorator-should get setting test on instances" name="Setting Decorator-should get setting test on instances" time="0">
</testcase>
<testcase classname="RegisterModule Decorator-should register a module" name="RegisterModule Decorator-should register a module" time="0.001">
</testcase>
<testcase classname="RegisterModule Decorator-should fail if use different method to register a module" name="RegisterModule Decorator-should fail if use different method to register a module" time="0.015">
</testcase>
<testcase classname="Static Decorator-should register a static server" name="Static Decorator-should register a static server" time="0">
</testcase>
<testcase classname="Static Decorator-should register a static server with virtual" name="Static Decorator-should register a static server with virtual" time="0.001">
</testcase>
<testcase classname="Static Decorator-should fail if not root folder is present" name="Static Decorator-should fail if not root folder is present" time="0.001">
</testcase>
<testcase classname="Express Directive Decorator-should allow to modify etag" name="Express Directive Decorator-should allow to modify etag" time="0">
</testcase>
<testcase classname="Express Directive Decorator-should fail if directive is named as invalid " name="Express Directive Decorator-should fail if directive is named as invalid " time="0.001">
</testcase>
<testcase classname="Express Directive Decorator-should fail if directive is not named " name="Express Directive Decorator-should fail if directive is not named " time="0">
</testcase>
<testcase classname="Modules Decorator-should register a module" name="Modules Decorator-should register a module" time="0">
</testcase>
<testcase classname="Modules Decorator-should fail if use different method to register a module" name="Modules Decorator-should fail if use different method to register a module" time="0.001">
</testcase>
</testsuite>
<testsuite name="__test__/unit/classes/boot-secure.spec.ts" errors="0" failures="0" skipped="0" timestamp="2024-04-25T04:28:44" time="2.554" tests="3">
<testcase classname="Boot Class Secure Server-should create instance correctly" name="Boot Class Secure Server-should create instance correctly" time="0.001">
</testcase>
<testcase classname="Boot Class Secure Server-should start server as default" name="Boot Class Secure Server-should start server as default" time="0.021">
</testcase>
<testcase classname="Boot Class Secure Server-should start an application" name="Boot Class Secure Server-should start an application" time="0.003">
</testcase>
</testsuite>
<testsuite name="__test__/integrations/server.spec.ts" errors="0" failures="0" skipped="0" timestamp="2024-04-25T04:28:47" time="2.133" tests="11">
<testcase classname="Webserver integration-should response string correctly" name="Webserver integration-should response string correctly" time="0.02">
</testcase>
<testcase classname="Webserver integration-should response number correctly" name="Webserver integration-should response number correctly" time="0.004">
</testcase>
<testcase classname="Webserver integration-should go next as result of 404" name="Webserver integration-should go next as result of 404" time="0.007">
</testcase>
<testcase classname="Webserver integration-should go next middleware and fail" name="Webserver integration-should go next middleware and fail" time="0.013">
</testcase>
<testcase classname="Webserver integration-should return a generic error" name="Webserver integration-should return a generic error" time="0.007">
</testcase>
<testcase classname="Webserver integration-should return a bad request error" name="Webserver integration-should return a bad request error" time="0.006">
</testcase>
<testcase classname="Webserver integration-should test request and response annotations" name="Webserver integration-should test request and response annotations" time="0.007">
</testcase>
<testcase classname="Webserver integration-should test params annotations" name="Webserver integration-should test params annotations" time="0.005">
</testcase>
<testcase classname="Webserver integration-should test query annotations" name="Webserver integration-should test query annotations" time="0.005">
</testcase>
<testcase classname="Webserver integration-should test body annotations" name="Webserver integration-should test body annotations" time="0.006">
</testcase>
<testcase classname="Webserver integration-should test returning number correctly" name="Webserver integration-should test returning number correctly" time="0.004">
</testcase>
</testsuite>
<testsuite name="__test__/unit/services/websocket-service.spec.ts" errors="0" failures="0" skipped="0" timestamp="2024-04-25T04:28:49" time="0.078" tests="8">
<testcase classname="Websocket Service-should initialize WebsocketService" name="Websocket Service-should initialize WebsocketService" time="0.001">
</testcase>
<testcase classname="Websocket Service-should create an instance WebsocketService" name="Websocket Service-should create an instance WebsocketService" time="0.001">
</testcase>
<testcase classname="Websocket Service-should be the same instance of WebsocketService" name="Websocket Service-should be the same instance of WebsocketService" time="0">
</testcase>
<testcase classname="Websocket Service-should create WebsocketService singleton" name="Websocket Service-should create WebsocketService singleton" time="0.001">
</testcase>
<testcase classname="Websocket Service-should be the same instance of WebsocketService" name="Websocket Service-should be the same instance of WebsocketService" time="0">
</testcase>
<testcase classname="Websocket Service-should setup http server correctly" name="Websocket Service-should setup http server correctly" time="0.001">
</testcase>
<testcase classname="Websocket Service-should get websocket according to the server setting" name="Websocket Service-should get websocket according to the server setting" time="0.001">
</testcase>
<testcase classname="Websocket Service-should reinitialize multiple times with same result" name="Websocket Service-should reinitialize multiple times with same result" time="0">
</testcase>
</testsuite>
<testsuite name="__test__/unit/classes/boot-extend.spec.ts" errors="0" failures="0" skipped="0" timestamp="2024-04-25T04:28:49" time="0.081" tests="5">
<testcase classname="Boot Class Extends-should register a new static" name="Boot Class Extends-should register a new static" time="0.003">
</testcase>
<testcase classname="Boot Class Extends-should register a new static with virtual" name="Boot Class Extends-should register a new static with virtual" time="0.001">
</testcase>
<testcase classname="Boot Class Extends-should register a new static with virtual and change options" name="Boot Class Extends-should register a new static with virtual and change options" time="0.001">
</testcase>
<testcase classname="Boot Class Extends-should set a new directive setting value" name="Boot Class Extends-should set a new directive setting value" time="0.001">
</testcase>
<testcase classname="Boot Class Extends-should set a new directive setting value and pass multiple arguments" name="Boot Class Extends-should set a new directive setting value and pass multiple arguments" time="0.001">
</testcase>
</testsuite>
<testsuite name="__test__/integrations/teapot.spec.ts" errors="0" failures="0" skipped="0" timestamp="2024-04-25T04:28:49" time="7.062" tests="7">
<testcase classname="Teapot/Teacup integration-should initialize Teapot Service" name="Teapot/Teacup integration-should initialize Teapot Service" time="0.024">
</testcase>
<testcase classname="Teapot/Teacup integration-should get first teacup microservice group" name="Teapot/Teacup integration-should get first teacup microservice group" time="0.011">
</testcase>
<testcase classname="Teapot/Teacup integration-should get second teacup microservice group" name="Teapot/Teacup integration-should get second teacup microservice group" time="0.01">
</testcase>
<testcase classname="Teapot/Teacup integration-should get teacup post response from first microservice group" name="Teapot/Teacup integration-should get teacup post response from first microservice group" time="0.007">
</testcase>
<testcase classname="Teapot/Teacup integration-should get teacup post response from first microservice group" name="Teapot/Teacup integration-should get teacup post response from first microservice group" time="0.007">
</testcase>
<testcase classname="Teapot/Teacup integration-should get 404 when call a unverified teacup" name="Teapot/Teacup integration-should get 404 when call a unverified teacup" time="0.004">
</testcase>
<testcase classname="Teapot/Teacup integration-should remove a teacup from teapot gateway" name="Teapot/Teacup integration-should remove a teacup from teapot gateway" time="1.519">
</testcase>
</testsuite>
<testsuite name="__test__/unit/classes/boot.spec.ts" errors="0" failures="0" skipped="0" timestamp="2024-04-25T04:28:56" time="0.104" tests="5">
<testcase classname="Boot Class-should start server as default" name="Boot Class-should start server as default" time="0.003">
</testcase>
<testcase classname="Boot Class-should create instance correctly" name="Boot Class-should create instance correctly" time="0">
</testcase>
<testcase classname="Boot Class-should start an application" name="Boot Class-should start an application" time="0.002">
</testcase>
<testcase classname="Boot Class-should not fail if soft plugin fails" name="Boot Class-should not fail if soft plugin fails" time="0.002">
</testcase>
<testcase classname="Boot Class-should fail if hard plugin fails" name="Boot Class-should fail if hard plugin fails" time="0.001">
</testcase>
</testsuite>
<testsuite name="__test__/unit/classes/settings.spec.ts" errors="0" failures="0" skipped="0" timestamp="2024-04-25T04:28:56" time="0.057" tests="12">
<testcase classname="Settings Class-should be existed" name="Settings Class-should be existed" time="0">
</testcase>
<testcase classname="Settings Class-should create a new instance with undefined and return value correctly" name="Settings Class-should create a new instance with undefined and return value correctly" time="0.001">
</testcase>
<testcase classname="Settings Class-should create a new instance with {"port": 8080} and return value correctly" name="Settings Class-should create a new instance with {"port": 8080} and return value correctly" time="0">
</testcase>
<testcase classname="Settings Class-should create a new instance with {"a": "b", "port": 8080} and return value correctly" name="Settings Class-should create a new instance with {"a": "b", "port": 8080} and return value correctly" time="0.001">
</testcase>
<testcase classname="Settings Class-should create a new instance with {"c": "d"} and return value correctly" name="Settings Class-should create a new instance with {"c": "d"} and return value correctly" time="0">
</testcase>
<testcase classname="Settings Class-should merge undefined with the existed values" name="Settings Class-should merge undefined with the existed values" time="0">
</testcase>
<testcase classname="Settings Class-should merge {"port": 8080} with the existed values" name="Settings Class-should merge {"port": 8080} with the existed values" time="0.001">
</testcase>
<testcase classname="Settings Class-should merge {"a": "b", "port": 8080} with the existed values" name="Settings Class-should merge {"a": "b", "port": 8080} with the existed values" time="0">
</testcase>
<testcase classname="Settings Class-should merge {"c": "d"} with the existed values" name="Settings Class-should merge {"c": "d"} with the existed values" time="0.003">
</testcase>
<testcase classname="Settings Class-should get the same instance as singleton" name="Settings Class-should get the same instance as singleton" time="0">
</testcase>
<testcase classname="Settings Class-should get the same instance as singleton" name="Settings Class-should get the same instance as singleton" time="0.001">
</testcase>
<testcase classname="Settings Class-should be able to assign and get new setting value" name="Settings Class-should be able to assign and get new setting value" time="0">
</testcase>
</testsuite>
<testsuite name="__test__/unit/classes/boot-error.spec.ts" errors="0" failures="0" skipped="0" timestamp="2024-04-25T04:28:57" time="0.144" tests="2">
<testcase classname="Boot Soft Errors Class-should start server as default" name="Boot Soft Errors Class-should start server as default" time="0.003">
</testcase>
<testcase classname="Boot Hard Errors Class-should fail server as plugin is required" name="Boot Hard Errors Class-should fail server as plugin is required" time="0">
</testcase>
</testsuite>
<testsuite name="__test__/unit/exceptions/request-exception.spec.ts" errors="0" failures="0" skipped="0" timestamp="2024-04-25T04:28:57" time="0.044" tests="6">
<testcase classname="Bootloader Exceptions-should instance required exception" name="Bootloader Exceptions-should instance required exception" time="0">
</testcase>
<testcase classname="Bootloader Exceptions-should instance required exception" name="Bootloader Exceptions-should instance required exception" time="0.001">
</testcase>
<testcase classname="Bootloader Exceptions-should instance required exception" name="Bootloader Exceptions-should instance required exception" time="0">
</testcase>
<testcase classname="Bootloader Exceptions-should instance required exception with default message" name="Bootloader Exceptions-should instance required exception with default message" time="0">
</testcase>
<testcase classname="Bootloader Exceptions-should instance required exception" name="Bootloader Exceptions-should instance required exception" time="0">
</testcase>
<testcase classname="Bootloader Exceptions-should instance required exception with default message" name="Bootloader Exceptions-should instance required exception with default message" time="0.001">
</testcase>
</testsuite>
<testsuite name="__test__/integrations/websocket.spec.ts" errors="0" failures="0" skipped="0" timestamp="2024-04-25T04:28:57" time="0.08" tests="3">
<testcase classname="Websocket integration-should initialize websockets" name="Websocket integration-should initialize websockets" time="0.003">
</testcase>
<testcase classname="Websocket integration-should initialize websockets as secure protocol" name="Websocket integration-should initialize websockets as secure protocol" time="0.002">
</testcase>
<testcase classname="Websocket integration-should detach Websocket from http server" name="Websocket integration-should detach Websocket from http server" time="0.002">
</testcase>
</testsuite>
<testsuite name="__test__/unit/services/dependency-injection.spec.ts" errors="0" failures="0" skipped="0" timestamp="2024-04-25T04:28:57" time="0.095" tests="3">
<testcase classname="Dependency Injection Service-should setup provider to dependency injection container" name="Dependency Injection Service-should setup provider to dependency injection container" time="0.002">
</testcase>
<testcase classname="Dependency Injection Service-should setup provider to dependency injection container with name" name="Dependency Injection Service-should setup provider to dependency injection container with name" time="0.001">
</testcase>
<testcase classname="Dependency Injection Service-should ignore provider if is already on the container" name="Dependency Injection Service-should ignore provider if is already on the container" time="0">
</testcase>
</testsuite>
<testsuite name="__test__/unit/decorators/module.spec.ts" errors="0" failures="0" skipped="0" timestamp="2024-04-25T04:28:57" time="0.062" tests="2">
<testcase classname="Module Decorator-should instanciate correctly" name="Module Decorator-should instanciate correctly" time="0.001">
</testcase>
<testcase classname="Module Decorator-should register the module on express route correctly" name="Module Decorator-should register the module on express route correctly" time="0.001">
</testcase>
</testsuite>
<testsuite name="__test__/unit/classes/loadbalancer.spec.ts" errors="0" failures="0" skipped="0" timestamp="2024-04-25T04:28:57" time="0.074" tests="2">
<testcase classname="Load Balancer-should create load balancer instance" name="Load Balancer-should create load balancer instance" time="0.001">
</testcase>
<testcase classname="Load Balancer-should resolve when bins is new" name="Load Balancer-should resolve when bins is new" time="0">
</testcase>
</testsuite>
<testsuite name="__test__/unit/exceptions/bootloader-exceptions.spec.ts" errors="0" failures="0" skipped="0" timestamp="2024-04-25T04:28:57" time="0.042" tests="2">
<testcase classname="Bootloader Exceptions-should instance required exception" name="Bootloader Exceptions-should instance required exception" time="0.001">
</testcase>
<testcase classname="Bootloader Exceptions-should instance soft required exception" name="Bootloader Exceptions-should instance soft required exception" time="0">
</testcase>
</testsuite>
<testsuite name="__test__/unit/decorators/annotations.spec.ts" errors="0" failures="0" skipped="0" timestamp="2024-04-25T04:28:57" time="0.039" tests="1">
<testcase classname="Annotations-Get Request" name="Annotations-Get Request" time="0">
</testcase>
</testsuite>
</testsuites>