@teambit/multi-tester 1.0.503 → 1.0.505
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.505" 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={804:(e,t,n)=>{Object.defineProperty(t,"Ay",{enumerable:!0,get:function(){return r.default}});var r=o(n(252));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}},252:(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=c,s(n(594));var o=n(16),i=n(682),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={},u="wrapper";function c(e){var t=e.components,n=d(e,a);return(0,o.mdx)(u,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"),".")))}c.__bit_component=r,c.isMDXComponent=!0},193:(e,t,n)=>{var r={id:"teambit.defender/multi-tester@1.0.505",homepage:"https://bit.cloud/teambit/defender/multi-tester",exported:!0};function o(){const e=i(n(594));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},16:e=>{e.exports=MdxJsReact},594:e=>{e.exports=React},682: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={};n.r(r),n.d(r,{compositions:()=>f,compositions_metadata:()=>v,overview:()=>b});var o={};n.r(o),n.d(o,{default:()=>c});var i=n(193),a=(n(594),n(16)),s=n(682),p=n(804),d=["components"];function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(null,arguments)}var m={},u="wrapper";function c(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({}.hasOwnProperty.call(e,r)){if(t.includes(r))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.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,d);return(0,a.mdx)(u,l({},m,n,{components:t,mdxType:"MDXLayout"}),(0,a.mdx)(s.MDXScopeProvider,{components:{TesterOverview:p.Ay},mdxType:"MDXScopeProvider"},(0,a.mdx)(p.Ay,{mdxType:"TesterOverview"})))}c.isMDXComponent=!0;const f=[i],b=[o],v={compositions:[{displayName:"Logo",identifier:"Logo"}]};return r})()));
|
package/artifacts/schema.json
CHANGED
|
@@ -93,11 +93,7 @@
|
|
|
93
93
|
"line": 9,
|
|
94
94
|
"character": 31
|
|
95
95
|
},
|
|
96
|
-
"name": "Logger"
|
|
97
|
-
"componentId": {
|
|
98
|
-
"scope": "teambit.harmony",
|
|
99
|
-
"name": "logger"
|
|
100
|
-
}
|
|
96
|
+
"name": "Logger"
|
|
101
97
|
},
|
|
102
98
|
"isOptional": false,
|
|
103
99
|
"isSpread": false
|
|
@@ -179,11 +175,7 @@
|
|
|
179
175
|
"line": 17,
|
|
180
176
|
"character": 25
|
|
181
177
|
},
|
|
182
|
-
"name": "Tester"
|
|
183
|
-
"componentId": {
|
|
184
|
-
"scope": "teambit.defender",
|
|
185
|
-
"name": "tester"
|
|
186
|
-
}
|
|
178
|
+
"name": "Tester"
|
|
187
179
|
}
|
|
188
180
|
},
|
|
189
181
|
"isOptional": false,
|
|
@@ -276,11 +268,7 @@
|
|
|
276
268
|
"line": 27,
|
|
277
269
|
"character": 42
|
|
278
270
|
},
|
|
279
|
-
"name": "LoggerMain"
|
|
280
|
-
"componentId": {
|
|
281
|
-
"scope": "teambit.harmony",
|
|
282
|
-
"name": "logger"
|
|
283
|
-
}
|
|
271
|
+
"name": "LoggerMain"
|
|
284
272
|
}
|
|
285
273
|
]
|
|
286
274
|
},
|
|
@@ -399,11 +387,7 @@
|
|
|
399
387
|
"line": 15,
|
|
400
388
|
"character": 23
|
|
401
389
|
},
|
|
402
|
-
"name": "Tester"
|
|
403
|
-
"componentId": {
|
|
404
|
-
"scope": "teambit.defender",
|
|
405
|
-
"name": "tester"
|
|
406
|
-
}
|
|
390
|
+
"name": "Tester"
|
|
407
391
|
}
|
|
408
392
|
},
|
|
409
393
|
"isOptional": false,
|
|
@@ -467,11 +451,7 @@
|
|
|
467
451
|
"line": 26,
|
|
468
452
|
"character": 23
|
|
469
453
|
},
|
|
470
|
-
"name": "TesterContext"
|
|
471
|
-
"componentId": {
|
|
472
|
-
"scope": "teambit.defender",
|
|
473
|
-
"name": "tester"
|
|
474
|
-
}
|
|
454
|
+
"name": "TesterContext"
|
|
475
455
|
},
|
|
476
456
|
"isOptional": false,
|
|
477
457
|
"isSpread": false
|
|
@@ -493,11 +473,7 @@
|
|
|
493
473
|
"line": 26,
|
|
494
474
|
"character": 47
|
|
495
475
|
},
|
|
496
|
-
"name": "Tests"
|
|
497
|
-
"componentId": {
|
|
498
|
-
"scope": "teambit.defender",
|
|
499
|
-
"name": "tester"
|
|
500
|
-
}
|
|
476
|
+
"name": "Tests"
|
|
501
477
|
}
|
|
502
478
|
]
|
|
503
479
|
},
|
|
@@ -530,11 +506,7 @@
|
|
|
530
506
|
"line": 35,
|
|
531
507
|
"character": 24
|
|
532
508
|
},
|
|
533
|
-
"name": "TesterContext"
|
|
534
|
-
"componentId": {
|
|
535
|
-
"scope": "teambit.defender",
|
|
536
|
-
"name": "tester"
|
|
537
|
-
}
|
|
509
|
+
"name": "TesterContext"
|
|
538
510
|
},
|
|
539
511
|
"isOptional": false,
|
|
540
512
|
"isSpread": false
|
|
@@ -556,11 +528,7 @@
|
|
|
556
528
|
"line": 35,
|
|
557
529
|
"character": 48
|
|
558
530
|
},
|
|
559
|
-
"name": "Tests"
|
|
560
|
-
"componentId": {
|
|
561
|
-
"scope": "teambit.defender",
|
|
562
|
-
"name": "tester"
|
|
563
|
-
}
|
|
531
|
+
"name": "Tests"
|
|
564
532
|
}
|
|
565
533
|
]
|
|
566
534
|
},
|
|
@@ -624,7 +592,7 @@
|
|
|
624
592
|
"_legacy": {
|
|
625
593
|
"scope": "teambit.defender",
|
|
626
594
|
"name": "multi-tester",
|
|
627
|
-
"version": "1.0.
|
|
595
|
+
"version": "1.0.505"
|
|
628
596
|
},
|
|
629
597
|
"_scope": "teambit.defender"
|
|
630
598
|
}
|
|
@@ -727,11 +695,7 @@
|
|
|
727
695
|
"line": 9,
|
|
728
696
|
"character": 31
|
|
729
697
|
},
|
|
730
|
-
"name": "Logger"
|
|
731
|
-
"componentId": {
|
|
732
|
-
"scope": "teambit.harmony",
|
|
733
|
-
"name": "logger"
|
|
734
|
-
}
|
|
698
|
+
"name": "Logger"
|
|
735
699
|
},
|
|
736
700
|
"isOptional": false,
|
|
737
701
|
"isSpread": false
|
|
@@ -813,11 +777,7 @@
|
|
|
813
777
|
"line": 17,
|
|
814
778
|
"character": 25
|
|
815
779
|
},
|
|
816
|
-
"name": "Tester"
|
|
817
|
-
"componentId": {
|
|
818
|
-
"scope": "teambit.defender",
|
|
819
|
-
"name": "tester"
|
|
820
|
-
}
|
|
780
|
+
"name": "Tester"
|
|
821
781
|
}
|
|
822
782
|
},
|
|
823
783
|
"isOptional": false,
|
|
@@ -910,11 +870,7 @@
|
|
|
910
870
|
"line": 27,
|
|
911
871
|
"character": 42
|
|
912
872
|
},
|
|
913
|
-
"name": "LoggerMain"
|
|
914
|
-
"componentId": {
|
|
915
|
-
"scope": "teambit.harmony",
|
|
916
|
-
"name": "logger"
|
|
917
|
-
}
|
|
873
|
+
"name": "LoggerMain"
|
|
918
874
|
}
|
|
919
875
|
]
|
|
920
876
|
},
|
|
@@ -1085,11 +1041,7 @@
|
|
|
1085
1041
|
"line": 15,
|
|
1086
1042
|
"character": 23
|
|
1087
1043
|
},
|
|
1088
|
-
"name": "Tester"
|
|
1089
|
-
"componentId": {
|
|
1090
|
-
"scope": "teambit.defender",
|
|
1091
|
-
"name": "tester"
|
|
1092
|
-
}
|
|
1044
|
+
"name": "Tester"
|
|
1093
1045
|
}
|
|
1094
1046
|
},
|
|
1095
1047
|
"isOptional": false,
|
|
@@ -1153,11 +1105,7 @@
|
|
|
1153
1105
|
"line": 26,
|
|
1154
1106
|
"character": 23
|
|
1155
1107
|
},
|
|
1156
|
-
"name": "TesterContext"
|
|
1157
|
-
"componentId": {
|
|
1158
|
-
"scope": "teambit.defender",
|
|
1159
|
-
"name": "tester"
|
|
1160
|
-
}
|
|
1108
|
+
"name": "TesterContext"
|
|
1161
1109
|
},
|
|
1162
1110
|
"isOptional": false,
|
|
1163
1111
|
"isSpread": false
|
|
@@ -1179,11 +1127,7 @@
|
|
|
1179
1127
|
"line": 26,
|
|
1180
1128
|
"character": 47
|
|
1181
1129
|
},
|
|
1182
|
-
"name": "Tests"
|
|
1183
|
-
"componentId": {
|
|
1184
|
-
"scope": "teambit.defender",
|
|
1185
|
-
"name": "tester"
|
|
1186
|
-
}
|
|
1130
|
+
"name": "Tests"
|
|
1187
1131
|
}
|
|
1188
1132
|
]
|
|
1189
1133
|
},
|
|
@@ -1216,11 +1160,7 @@
|
|
|
1216
1160
|
"line": 35,
|
|
1217
1161
|
"character": 24
|
|
1218
1162
|
},
|
|
1219
|
-
"name": "TesterContext"
|
|
1220
|
-
"componentId": {
|
|
1221
|
-
"scope": "teambit.defender",
|
|
1222
|
-
"name": "tester"
|
|
1223
|
-
}
|
|
1163
|
+
"name": "TesterContext"
|
|
1224
1164
|
},
|
|
1225
1165
|
"isOptional": false,
|
|
1226
1166
|
"isSpread": false
|
|
@@ -1242,11 +1182,7 @@
|
|
|
1242
1182
|
"line": 35,
|
|
1243
1183
|
"character": 48
|
|
1244
1184
|
},
|
|
1245
|
-
"name": "Tests"
|
|
1246
|
-
"componentId": {
|
|
1247
|
-
"scope": "teambit.defender",
|
|
1248
|
-
"name": "tester"
|
|
1249
|
-
}
|
|
1185
|
+
"name": "Tests"
|
|
1250
1186
|
}
|
|
1251
1187
|
]
|
|
1252
1188
|
},
|
|
@@ -1310,7 +1246,7 @@
|
|
|
1310
1246
|
"_legacy": {
|
|
1311
1247
|
"scope": "teambit.defender",
|
|
1312
1248
|
"name": "multi-tester",
|
|
1313
|
-
"version": "1.0.
|
|
1249
|
+
"version": "1.0.505"
|
|
1314
1250
|
},
|
|
1315
1251
|
"_scope": "teambit.defender"
|
|
1316
1252
|
}
|
|
@@ -1325,7 +1261,7 @@
|
|
|
1325
1261
|
"componentId": {
|
|
1326
1262
|
"scope": "teambit.defender",
|
|
1327
1263
|
"name": "multi-tester",
|
|
1328
|
-
"version": "1.0.
|
|
1264
|
+
"version": "1.0.505"
|
|
1329
1265
|
},
|
|
1330
1266
|
"taggedModuleExports": []
|
|
1331
1267
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.defender_multi-tester@1.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.defender_multi-tester@1.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.defender_multi-tester@1.0.505/dist/multi-tester.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.defender_multi-tester@1.0.505/dist/multi-tester.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/multi-tester",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.505",
|
|
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.505"
|
|
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.5",
|
|
16
|
-
"@teambit/cli": "0.0.
|
|
16
|
+
"@teambit/cli": "0.0.1082",
|
|
17
17
|
"@teambit/legacy.constants": "0.0.4",
|
|
18
|
-
"@teambit/logger": "0.0.
|
|
19
|
-
"@teambit/tester": "1.0.
|
|
18
|
+
"@teambit/logger": "0.0.1175",
|
|
19
|
+
"@teambit/tester": "1.0.505"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@types/lodash": "4.14.165",
|