@teambit/multi-tester 1.0.329 → 1.0.331
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.331" 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={68828:(e,t,n)=>{Object.defineProperty(t,"Ay",{enumerable:!0,get:function(){return r.default}});var r=o(n(51004));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}},51004:(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(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={},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},65612:(e,t,n)=>{var r={id:"teambit.defender/multi-tester@1.0.331",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={};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(65612),a=(n(41594),n(5016)),s=n(65682),p=n(68828),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.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||{}.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
|
@@ -121,11 +121,7 @@
|
|
|
121
121
|
"line": 11,
|
|
122
122
|
"character": 25
|
|
123
123
|
},
|
|
124
|
-
"name": "Tester"
|
|
125
|
-
"componentId": {
|
|
126
|
-
"scope": "teambit.defender",
|
|
127
|
-
"name": "tester"
|
|
128
|
-
}
|
|
124
|
+
"name": "Tester"
|
|
129
125
|
}
|
|
130
126
|
},
|
|
131
127
|
"isOptional": false,
|
|
@@ -284,11 +280,7 @@
|
|
|
284
280
|
"line": 13,
|
|
285
281
|
"character": 54
|
|
286
282
|
},
|
|
287
|
-
"name": "Tester"
|
|
288
|
-
"componentId": {
|
|
289
|
-
"scope": "teambit.defender",
|
|
290
|
-
"name": "tester"
|
|
291
|
-
}
|
|
283
|
+
"name": "Tester"
|
|
292
284
|
}
|
|
293
285
|
},
|
|
294
286
|
"isOptional": false,
|
|
@@ -352,11 +344,7 @@
|
|
|
352
344
|
"line": 23,
|
|
353
345
|
"character": 23
|
|
354
346
|
},
|
|
355
|
-
"name": "TesterContext"
|
|
356
|
-
"componentId": {
|
|
357
|
-
"scope": "teambit.defender",
|
|
358
|
-
"name": "tester"
|
|
359
|
-
}
|
|
347
|
+
"name": "TesterContext"
|
|
360
348
|
},
|
|
361
349
|
"isOptional": false,
|
|
362
350
|
"isSpread": false
|
|
@@ -378,11 +366,7 @@
|
|
|
378
366
|
"line": 23,
|
|
379
367
|
"character": 47
|
|
380
368
|
},
|
|
381
|
-
"name": "Tests"
|
|
382
|
-
"componentId": {
|
|
383
|
-
"scope": "teambit.defender",
|
|
384
|
-
"name": "tester"
|
|
385
|
-
}
|
|
369
|
+
"name": "Tests"
|
|
386
370
|
}
|
|
387
371
|
]
|
|
388
372
|
},
|
|
@@ -415,11 +399,7 @@
|
|
|
415
399
|
"line": 32,
|
|
416
400
|
"character": 24
|
|
417
401
|
},
|
|
418
|
-
"name": "TesterContext"
|
|
419
|
-
"componentId": {
|
|
420
|
-
"scope": "teambit.defender",
|
|
421
|
-
"name": "tester"
|
|
422
|
-
}
|
|
402
|
+
"name": "TesterContext"
|
|
423
403
|
},
|
|
424
404
|
"isOptional": false,
|
|
425
405
|
"isSpread": false
|
|
@@ -441,11 +421,7 @@
|
|
|
441
421
|
"line": 32,
|
|
442
422
|
"character": 48
|
|
443
423
|
},
|
|
444
|
-
"name": "Tests"
|
|
445
|
-
"componentId": {
|
|
446
|
-
"scope": "teambit.defender",
|
|
447
|
-
"name": "tester"
|
|
448
|
-
}
|
|
424
|
+
"name": "Tests"
|
|
449
425
|
}
|
|
450
426
|
]
|
|
451
427
|
},
|
|
@@ -509,7 +485,7 @@
|
|
|
509
485
|
"_legacy": {
|
|
510
486
|
"scope": "teambit.defender",
|
|
511
487
|
"name": "multi-tester",
|
|
512
|
-
"version": "1.0.
|
|
488
|
+
"version": "1.0.331"
|
|
513
489
|
},
|
|
514
490
|
"_scope": "teambit.defender"
|
|
515
491
|
}
|
|
@@ -642,11 +618,7 @@
|
|
|
642
618
|
"line": 11,
|
|
643
619
|
"character": 25
|
|
644
620
|
},
|
|
645
|
-
"name": "Tester"
|
|
646
|
-
"componentId": {
|
|
647
|
-
"scope": "teambit.defender",
|
|
648
|
-
"name": "tester"
|
|
649
|
-
}
|
|
621
|
+
"name": "Tester"
|
|
650
622
|
}
|
|
651
623
|
},
|
|
652
624
|
"isOptional": false,
|
|
@@ -858,11 +830,7 @@
|
|
|
858
830
|
"line": 13,
|
|
859
831
|
"character": 54
|
|
860
832
|
},
|
|
861
|
-
"name": "Tester"
|
|
862
|
-
"componentId": {
|
|
863
|
-
"scope": "teambit.defender",
|
|
864
|
-
"name": "tester"
|
|
865
|
-
}
|
|
833
|
+
"name": "Tester"
|
|
866
834
|
}
|
|
867
835
|
},
|
|
868
836
|
"isOptional": false,
|
|
@@ -926,11 +894,7 @@
|
|
|
926
894
|
"line": 23,
|
|
927
895
|
"character": 23
|
|
928
896
|
},
|
|
929
|
-
"name": "TesterContext"
|
|
930
|
-
"componentId": {
|
|
931
|
-
"scope": "teambit.defender",
|
|
932
|
-
"name": "tester"
|
|
933
|
-
}
|
|
897
|
+
"name": "TesterContext"
|
|
934
898
|
},
|
|
935
899
|
"isOptional": false,
|
|
936
900
|
"isSpread": false
|
|
@@ -952,11 +916,7 @@
|
|
|
952
916
|
"line": 23,
|
|
953
917
|
"character": 47
|
|
954
918
|
},
|
|
955
|
-
"name": "Tests"
|
|
956
|
-
"componentId": {
|
|
957
|
-
"scope": "teambit.defender",
|
|
958
|
-
"name": "tester"
|
|
959
|
-
}
|
|
919
|
+
"name": "Tests"
|
|
960
920
|
}
|
|
961
921
|
]
|
|
962
922
|
},
|
|
@@ -989,11 +949,7 @@
|
|
|
989
949
|
"line": 32,
|
|
990
950
|
"character": 24
|
|
991
951
|
},
|
|
992
|
-
"name": "TesterContext"
|
|
993
|
-
"componentId": {
|
|
994
|
-
"scope": "teambit.defender",
|
|
995
|
-
"name": "tester"
|
|
996
|
-
}
|
|
952
|
+
"name": "TesterContext"
|
|
997
953
|
},
|
|
998
954
|
"isOptional": false,
|
|
999
955
|
"isSpread": false
|
|
@@ -1015,11 +971,7 @@
|
|
|
1015
971
|
"line": 32,
|
|
1016
972
|
"character": 48
|
|
1017
973
|
},
|
|
1018
|
-
"name": "Tests"
|
|
1019
|
-
"componentId": {
|
|
1020
|
-
"scope": "teambit.defender",
|
|
1021
|
-
"name": "tester"
|
|
1022
|
-
}
|
|
974
|
+
"name": "Tests"
|
|
1023
975
|
}
|
|
1024
976
|
]
|
|
1025
977
|
},
|
|
@@ -1083,7 +1035,7 @@
|
|
|
1083
1035
|
"_legacy": {
|
|
1084
1036
|
"scope": "teambit.defender",
|
|
1085
1037
|
"name": "multi-tester",
|
|
1086
|
-
"version": "1.0.
|
|
1038
|
+
"version": "1.0.331"
|
|
1087
1039
|
},
|
|
1088
1040
|
"_scope": "teambit.defender"
|
|
1089
1041
|
}
|
|
@@ -1098,7 +1050,7 @@
|
|
|
1098
1050
|
"componentId": {
|
|
1099
1051
|
"scope": "teambit.defender",
|
|
1100
1052
|
"name": "multi-tester",
|
|
1101
|
-
"version": "1.0.
|
|
1053
|
+
"version": "1.0.331"
|
|
1102
1054
|
},
|
|
1103
1055
|
"taggedModuleExports": []
|
|
1104
1056
|
}
|
|
@@ -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.331/dist/multi-tester.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.defender_multi-tester@1.0.331/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,27 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/multi-tester",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.331",
|
|
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.331"
|
|
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.908",
|
|
17
|
+
"@teambit/tester": "1.0.331"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/lodash": "4.14.165",
|
|
21
21
|
"@types/mocha": "9.1.0",
|
|
22
22
|
"chai": "4.3.0",
|
|
23
23
|
"@teambit/defender.content.tester-overview": "1.95.0",
|
|
24
|
-
"@teambit/harmony.envs.core-aspect-env": "0.0.
|
|
24
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.42"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": "^17.0.0 || ^18.0.0",
|