@teambit/multi-tester 1.0.258 → 1.0.259
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,4 +1,4 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<testsuites tests="0" failures="0" errors="0" skipped="0">
|
|
3
|
-
<testsuite name="teambit.defender/multi-tester@1.0.
|
|
3
|
+
<testsuite name="teambit.defender/multi-tester@1.0.259" tests="0" failures="0" errors="0" skipped="0"/>
|
|
4
4
|
</testsuites>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.defender/multi-tester-preview"]=t():e["teambit.defender/multi-tester-preview"]=t()}(self,(()=>(()=>{"use strict";var e={
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.defender/multi-tester-preview"]=t():e["teambit.defender/multi-tester-preview"]=t()}(self,(()=>(()=>{"use strict";var e={3403:(e,t,n)=>{Object.defineProperty(t,"Ay",{enumerable:!0,get:function(){return r.default}});var r=o(n(2555));function o(e){return e&&e.__esModule?e:{default:e}}o.__bit_component={id:"teambit.defender/content/tester-overview@1.95.0",homepage:"https://bit.dev/teambit/defender/content/tester-overview",exported:!0}},2555:(e,t,n)=>{var r={id:"teambit.defender/content/tester-overview@1.95.0",homepage:"https://bit.dev/teambit/defender/content/tester-overview",exported:!0};Object.defineProperty(t,"__esModule",{value:!0}),t.default=u,s(n(41594));var o=n(5016),i=n(65682),a=["components"];function s(e){return e&&e.__esModule?e:{default:e}}function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}function d(e,t){if(null==e)return{};var n,r,o=l(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}s.__bit_component=r,p.__bit_component=r,d.__bit_component=r,l.__bit_component=r;var m={},c="wrapper";function u(e){var t=e.components,n=d(e,a);return(0,o.mdx)(c,p({},m,n,{components:t,mdxType:"MDXLayout"}),(0,o.mdx)(i.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"},(0,o.mdx)("h1",null,"Tester Overview"),(0,o.mdx)("p",null,"The ",(0,o.mdx)("em",{parentName:"p"},"Tester")," provides a unified interface for testing components regardless of the specific tester they use."),(0,o.mdx)("p",null,"Software testing is a way to validate that an application or a module of it, behaves as expected."),(0,o.mdx)("p",null,"Web applications and services are often tested using a set of testing tools, where each tool plays a different role. For example, ",(0,o.mdx)("a",{parentName:"p",href:"https://jestjs.io/"},"Jest")," can be used as a test runner and as an assertion library, while ",(0,o.mdx)("a",{parentName:"p",href:"https://testing-library.com/"},"React Testing Library")," can be used for testing utilities."),(0,o.mdx)("p",null,"The Tester aspect is responsible for standardizing test execution for components; That is, it standardizes the way test runners are used. Other testing libraries used for utils, mocks, etc., are irrelevant, in that sense."),(0,o.mdx)("p",null,"Standardization is done for component testing during development (in the workspace) as well as for distribution (in a capsule ",", as part of the component ",(0,o.mdx)("a",{parentName:"p",href:"/builder/build-pipelines"},"build pipeline"),")."),(0,o.mdx)("h2",null,"Testing in development"),(0,o.mdx)("p",null,"Bit tests all components in the ",(0,o.mdx)("a",{parentName:"p",href:"/workspace/overview"},"Workspace")," using just a single command. That is true for components of all types, regardless of their specific ",(0,o.mdx)("a",{parentName:"p",href:"/envs/overview"},"Env"),", and as a consequence of that, their specific ",(0,o.mdx)("a",{parentName:"p",href:"/tester/overview"},"Tester implementation")," and configuration."),(0,o.mdx)("pre",null,(0,o.mdx)("code",{parentName:"pre",className:"language-bash"},"bit test\n")),(0,o.mdx)("p",null,"Components can be watched for changes and retested with a single command, as well."),(0,o.mdx)("pre",null,(0,o.mdx)("code",{parentName:"pre",className:"language-bash"},"bit test -w\n")),(0,o.mdx)("p",null,"To learn more on testing during development, please refer to ",(0,o.mdx)("a",{parentName:"p",href:"/tester/workspace-testing"},"Workspace Testing"),"."),(0,o.mdx)("h2",null,"Testing during build"),(0,o.mdx)("p",null,"Testing components for distribution is done during ",(0,o.mdx)("inlineCode",{parentName:"p"},"build")," by the Bit ",(0,o.mdx)("a",{parentName:"p",href:"/builder/overview"},"Builder"),"."),(0,o.mdx)("p",null,"Component build can be simulated with ",(0,o.mdx)("inlineCode",{parentName:"p"},"bit build")," and done through ",(0,o.mdx)("a",{parentName:"p",href:"/components/tags"},"Tag")," or ",(0,o.mdx)("a",{parentName:"p",href:"/components/snaps"},"Snap")),(0,o.mdx)("pre",null,(0,o.mdx)("code",{parentName:"pre",className:"language-bash"},"bit build\n")),(0,o.mdx)("p",null,"By default, Bit's pre-configured Envs includes a ",(0,o.mdx)("a",{parentName:"p",href:"/builder/overview#build-task"},"Build Task")," for testing components in the ",(0,o.mdx)("a",{parentName:"p",href:"/builder/build-pipelines"},"Build Pipeline"),", each using the Env's specific test configs."),(0,o.mdx)("p",null,"Testing during build provides the highest \"external validity\" by running tests on the distributable code that was generated by the Env's compiler and not by the tester's.\nThat way, the exact same code that will be consumed by other components, is tested before it is released. Moreover, since each component is tested in a capsule ",", isolated from the rest of the workspace, tests are guaranteed to provide results that are context-agnostic and free of false-positives."),(0,o.mdx)("h2",null,"Configuring and implementing Testers"),(0,o.mdx)("p",null,"Testers are configured in the ",(0,o.mdx)("a",{parentName:"p",href:"/envs/overview"},"Env")," which is configured on your ",(0,o.mdx)("a",{parentName:"p",href:"/components/overview"},"Component"),". Customizing the Tester can be done by ",(0,o.mdx)("a",{parentName:"p",href:"/envs/services/testing"},"customizing an existing env with your tester")," or by ",(0,o.mdx)("a",{parentName:"p",href:"/envs/customizing-env"},"implementing your own Env"),"."),(0,o.mdx)("p",null,"Tester can also be implemented into Bit through few interfaces. \x3c!--TODO For more information on implementing your own compiler please refer to ",(0,o.mdx)("a",{parentName:"p",href:"/"},"Implement a Compiler"),".")))}u.__bit_component=r,u.isMDXComponent=!0},6519:(e,t,n)=>{var r={id:"teambit.defender/multi-tester@1.0.259",homepage:"https://bit.cloud/teambit/defender/multi-tester",exported:!0};function o(){const e=i(n(41594));return o=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,o.__bit_component=r,i.__bit_component=r;const a=()=>o().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},o().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/tester.svg"}));a.__bit_component=r,t.Logo=a},5016:e=>{e.exports=MdxJsReact},41594:e=>{e.exports=React},65682:e=>{e.exports=TeambitMdxUiMdxScopeContext}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{n.r(r),n.d(r,{compositions:()=>c,compositions_metadata:()=>f,overview:()=>u});var e={};n.r(e),n.d(e,{default:()=>m});var t=n(6519),o=(n(41594),n(5016)),i=n(65682),a=n(3403),s=["components"];function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}var d={},l="wrapper";function m(e){var t=e.components,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,s);return(0,o.mdx)(l,p({},d,n,{components:t,mdxType:"MDXLayout"}),(0,o.mdx)(i.MDXScopeProvider,{components:{TesterOverview:a.Ay},mdxType:"MDXScopeProvider"},(0,o.mdx)(a.Ay,{mdxType:"TesterOverview"})))}m.isMDXComponent=!0;const c=[t],u=[e],f={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),r})()));
|
package/artifacts/schema.json
CHANGED
|
@@ -121,7 +121,11 @@
|
|
|
121
121
|
"line": 11,
|
|
122
122
|
"character": 25
|
|
123
123
|
},
|
|
124
|
-
"name": "Tester"
|
|
124
|
+
"name": "Tester",
|
|
125
|
+
"componentId": {
|
|
126
|
+
"scope": "teambit.defender",
|
|
127
|
+
"name": "tester"
|
|
128
|
+
}
|
|
125
129
|
}
|
|
126
130
|
},
|
|
127
131
|
"isOptional": false,
|
|
@@ -280,7 +284,11 @@
|
|
|
280
284
|
"line": 13,
|
|
281
285
|
"character": 54
|
|
282
286
|
},
|
|
283
|
-
"name": "Tester"
|
|
287
|
+
"name": "Tester",
|
|
288
|
+
"componentId": {
|
|
289
|
+
"scope": "teambit.defender",
|
|
290
|
+
"name": "tester"
|
|
291
|
+
}
|
|
284
292
|
}
|
|
285
293
|
},
|
|
286
294
|
"isOptional": false,
|
|
@@ -344,7 +352,11 @@
|
|
|
344
352
|
"line": 23,
|
|
345
353
|
"character": 23
|
|
346
354
|
},
|
|
347
|
-
"name": "TesterContext"
|
|
355
|
+
"name": "TesterContext",
|
|
356
|
+
"componentId": {
|
|
357
|
+
"scope": "teambit.defender",
|
|
358
|
+
"name": "tester"
|
|
359
|
+
}
|
|
348
360
|
},
|
|
349
361
|
"isOptional": false,
|
|
350
362
|
"isSpread": false
|
|
@@ -366,7 +378,11 @@
|
|
|
366
378
|
"line": 23,
|
|
367
379
|
"character": 47
|
|
368
380
|
},
|
|
369
|
-
"name": "Tests"
|
|
381
|
+
"name": "Tests",
|
|
382
|
+
"componentId": {
|
|
383
|
+
"scope": "teambit.defender",
|
|
384
|
+
"name": "tester"
|
|
385
|
+
}
|
|
370
386
|
}
|
|
371
387
|
]
|
|
372
388
|
},
|
|
@@ -399,7 +415,11 @@
|
|
|
399
415
|
"line": 32,
|
|
400
416
|
"character": 24
|
|
401
417
|
},
|
|
402
|
-
"name": "TesterContext"
|
|
418
|
+
"name": "TesterContext",
|
|
419
|
+
"componentId": {
|
|
420
|
+
"scope": "teambit.defender",
|
|
421
|
+
"name": "tester"
|
|
422
|
+
}
|
|
403
423
|
},
|
|
404
424
|
"isOptional": false,
|
|
405
425
|
"isSpread": false
|
|
@@ -421,7 +441,11 @@
|
|
|
421
441
|
"line": 32,
|
|
422
442
|
"character": 48
|
|
423
443
|
},
|
|
424
|
-
"name": "Tests"
|
|
444
|
+
"name": "Tests",
|
|
445
|
+
"componentId": {
|
|
446
|
+
"scope": "teambit.defender",
|
|
447
|
+
"name": "tester"
|
|
448
|
+
}
|
|
425
449
|
}
|
|
426
450
|
]
|
|
427
451
|
},
|
|
@@ -484,7 +508,7 @@
|
|
|
484
508
|
"_legacy": {
|
|
485
509
|
"scope": "teambit.defender",
|
|
486
510
|
"name": "multi-tester",
|
|
487
|
-
"version": "1.0.
|
|
511
|
+
"version": "1.0.259"
|
|
488
512
|
},
|
|
489
513
|
"_scope": "teambit.defender"
|
|
490
514
|
}
|
|
@@ -617,7 +641,11 @@
|
|
|
617
641
|
"line": 11,
|
|
618
642
|
"character": 25
|
|
619
643
|
},
|
|
620
|
-
"name": "Tester"
|
|
644
|
+
"name": "Tester",
|
|
645
|
+
"componentId": {
|
|
646
|
+
"scope": "teambit.defender",
|
|
647
|
+
"name": "tester"
|
|
648
|
+
}
|
|
621
649
|
}
|
|
622
650
|
},
|
|
623
651
|
"isOptional": false,
|
|
@@ -829,7 +857,11 @@
|
|
|
829
857
|
"line": 13,
|
|
830
858
|
"character": 54
|
|
831
859
|
},
|
|
832
|
-
"name": "Tester"
|
|
860
|
+
"name": "Tester",
|
|
861
|
+
"componentId": {
|
|
862
|
+
"scope": "teambit.defender",
|
|
863
|
+
"name": "tester"
|
|
864
|
+
}
|
|
833
865
|
}
|
|
834
866
|
},
|
|
835
867
|
"isOptional": false,
|
|
@@ -893,7 +925,11 @@
|
|
|
893
925
|
"line": 23,
|
|
894
926
|
"character": 23
|
|
895
927
|
},
|
|
896
|
-
"name": "TesterContext"
|
|
928
|
+
"name": "TesterContext",
|
|
929
|
+
"componentId": {
|
|
930
|
+
"scope": "teambit.defender",
|
|
931
|
+
"name": "tester"
|
|
932
|
+
}
|
|
897
933
|
},
|
|
898
934
|
"isOptional": false,
|
|
899
935
|
"isSpread": false
|
|
@@ -915,7 +951,11 @@
|
|
|
915
951
|
"line": 23,
|
|
916
952
|
"character": 47
|
|
917
953
|
},
|
|
918
|
-
"name": "Tests"
|
|
954
|
+
"name": "Tests",
|
|
955
|
+
"componentId": {
|
|
956
|
+
"scope": "teambit.defender",
|
|
957
|
+
"name": "tester"
|
|
958
|
+
}
|
|
919
959
|
}
|
|
920
960
|
]
|
|
921
961
|
},
|
|
@@ -948,7 +988,11 @@
|
|
|
948
988
|
"line": 32,
|
|
949
989
|
"character": 24
|
|
950
990
|
},
|
|
951
|
-
"name": "TesterContext"
|
|
991
|
+
"name": "TesterContext",
|
|
992
|
+
"componentId": {
|
|
993
|
+
"scope": "teambit.defender",
|
|
994
|
+
"name": "tester"
|
|
995
|
+
}
|
|
952
996
|
},
|
|
953
997
|
"isOptional": false,
|
|
954
998
|
"isSpread": false
|
|
@@ -970,7 +1014,11 @@
|
|
|
970
1014
|
"line": 32,
|
|
971
1015
|
"character": 48
|
|
972
1016
|
},
|
|
973
|
-
"name": "Tests"
|
|
1017
|
+
"name": "Tests",
|
|
1018
|
+
"componentId": {
|
|
1019
|
+
"scope": "teambit.defender",
|
|
1020
|
+
"name": "tester"
|
|
1021
|
+
}
|
|
974
1022
|
}
|
|
975
1023
|
]
|
|
976
1024
|
},
|
|
@@ -1033,7 +1081,7 @@
|
|
|
1033
1081
|
"_legacy": {
|
|
1034
1082
|
"scope": "teambit.defender",
|
|
1035
1083
|
"name": "multi-tester",
|
|
1036
|
-
"version": "1.0.
|
|
1084
|
+
"version": "1.0.259"
|
|
1037
1085
|
},
|
|
1038
1086
|
"_scope": "teambit.defender"
|
|
1039
1087
|
}
|
|
@@ -1048,7 +1096,7 @@
|
|
|
1048
1096
|
"componentId": {
|
|
1049
1097
|
"scope": "teambit.defender",
|
|
1050
1098
|
"name": "multi-tester",
|
|
1051
|
-
"version": "1.0.
|
|
1099
|
+
"version": "1.0.259"
|
|
1052
1100
|
},
|
|
1053
1101
|
"taggedModuleExports": []
|
|
1054
1102
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.defender_multi-tester@1.0.259/dist/multi-tester.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.defender_multi-tester@1.0.259/dist/multi-tester.docs.mdx';
|
|
3
|
+
|
|
4
|
+
export const compositions = [compositions_0];
|
|
5
|
+
export const overview = [overview_0];
|
|
6
|
+
|
|
7
|
+
export const compositions_metadata = {"compositions":[{"displayName":"Logo","identifier":"Logo"}]};
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/multi-tester",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.259",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/defender/multi-tester",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.defender",
|
|
8
8
|
"name": "multi-tester",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.259"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"lodash": "4.17.21",
|
|
13
13
|
"p-map-series": "2.1.0",
|
|
14
14
|
"@teambit/harmony": "0.4.6",
|
|
15
15
|
"@teambit/tests-results": "1.0.4",
|
|
16
|
-
"@teambit/cli": "0.0.
|
|
17
|
-
"@teambit/tester": "1.0.
|
|
16
|
+
"@teambit/cli": "0.0.863",
|
|
17
|
+
"@teambit/tester": "1.0.259"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/lodash": "4.14.165",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as compositions_0 from '/Users/giladshoham/Library/Caches/Bit/capsules/root/b5ea46ec3/teambit.defender_multi-tester@1.0.258/dist/multi-tester.composition.js';
|
|
2
|
-
import * as overview_0 from '/Users/giladshoham/Library/Caches/Bit/capsules/root/b5ea46ec3/teambit.defender_multi-tester@1.0.258/dist/multi-tester.docs.mdx';
|
|
3
|
-
|
|
4
|
-
export const compositions = [compositions_0];
|
|
5
|
-
export const overview = [overview_0];
|
|
6
|
-
|
|
7
|
-
export const compositions_metadata = {"compositions":[{"displayName":"Logo","identifier":"Logo"}]};
|