@@ -233,7 +233,20 @@ jobs:
233233 /p:TELBlazorPackageSource=$TELBLAZOR_PACKAGE_SOURCE \
234234 /p:DisablePackageGeneration=$DISABLE_PACKAGE_GENERATION \
235235 /p:E2ETracingEnabled=$E2E_TRACING_ENABLED \
236- /p:HeadlessTesting=$HEADLESS_TESTING
236+ /p:HeadlessTesting=$HEADLESS_TESTING \
237+ /p:CollectCoverage=true \
238+ /p:CoverletOutputFormat=cobertura \
239+ /p:Threshold=50 \
240+ /p:ThresholdType=line \
241+ /p:ThresholdStat=total \
242+ /p:ThresholdBranch=50 \
243+ /p:ThresholdMethod=50 \
244+ /p:Include="[TELBlazor.Components]*" \
245+ /p:ExcludeByAttribute=ExcludeFromCodeCoverage \
246+ /p:ExcludeByFile="**/Program.cs,**/Components/TestComponents/*.*" \
247+ /p:IncludeTestAssembly=true \
248+ /p:CoverletOutput=/home/runner/work/TELBlazor/TELBlazor/AllTestResults/ \
249+ /p:MergeWith=/home/runner/work/TELBlazor/TELBlazor/AllTestResults/coverage.json
237250
238251 - name : Build solution without generating new package
239252 env :
@@ -247,7 +260,20 @@ jobs:
247260 /p:TELBlazorPackageSource=$TELBLAZOR_PACKAGE_SOURCE \
248261 /p:DisablePackageGeneration=$DISABLE_PACKAGE_GENERATION \
249262 /p:E2ETracingEnabled=$E2E_TRACING_ENABLED \
250- /p:HeadlessTesting=$HEADLESS_TESTING
263+ /p:HeadlessTesting=$HEADLESS_TESTING \
264+ /p:CollectCoverage=true \
265+ /p:CoverletOutputFormat=cobertura \
266+ /p:Threshold=50 \
267+ /p:ThresholdType=line \
268+ /p:ThresholdStat=total \
269+ /p:ThresholdBranch=50 \
270+ /p:ThresholdMethod=50 \
271+ /p:Include="[TELBlazor.Components]*" \
272+ /p:ExcludeByAttribute=ExcludeFromCodeCoverage \
273+ /p:ExcludeByFile="**/Program.cs,**/Components/TestComponents/*.*" \
274+ /p:IncludeTestAssembly=true \
275+ /p:CoverletOutput=/home/runner/work/TELBlazor/TELBlazor/AllTestResults/ \
276+ /p:MergeWith=/home/runner/work/TELBlazor/TELBlazor/AllTestResults/coverage.json
251277
252278 - name : Ensure browsers are installed
253279 run : pwsh TELBlazor.Components.ShowCase.E2ETests/bin/Debug/net8.0/playwright.ps1 install --with-deps
@@ -263,7 +289,27 @@ jobs:
263289 E2ETracingEnabled : ${{ env.E2E_TRACING_ENABLED }}
264290 HeadlessTesting : ${{ env.HEADLESS_TESTING }}
265291 run : |
266- dotnet test --no-build --no-restore
292+ dotnet test --no-build --no-restore \
293+ /p:TELBlazorPackageVersion=$TELBLAZOR_PACKAGE_VERSION \
294+ /p:NupkgOutputPath=$TELBLAZOR_PACKAGE_LOCAL_OUTPUT_PATH \
295+ /p:UseTELBlazorComponentsProjectReference=$USE_TEL_BLAZOR_COMPONENTS_PROJECT_REFERENCE \
296+ /p:TELBlazorPackageSource=$TELBLAZOR_PACKAGE_SOURCE \
297+ /p:DisablePackageGeneration=$DISABLE_PACKAGE_GENERATION \
298+ /p:E2ETracingEnabled=$E2E_TRACING_ENABLED \
299+ /p:HeadlessTesting=$HEADLESS_TESTING \
300+ /p:CollectCoverage=true \
301+ /p:CoverletOutputFormat=cobertura \
302+ /p:Threshold=50 \
303+ /p:ThresholdType=line \
304+ /p:ThresholdStat=total \
305+ /p:ThresholdBranch=50 \
306+ /p:ThresholdMethod=50 \
307+ /p:Include="[TELBlazor.Components]*" \
308+ /p:ExcludeByAttribute=ExcludeFromCodeCoverage \
309+ /p:ExcludeByFile="**/Program.cs,**/Components/TestComponents/*.*" \
310+ /p:IncludeTestAssembly=true \
311+ /p:CoverletOutput=/home/runner/work/TELBlazor/TELBlazor/AllTestResults/ \
312+ /p:MergeWith=/home/runner/work/TELBlazor/TELBlazor/AllTestResults/coverage.json
267313 continue-on-error : true
268314
269315
0 commit comments