Error about code coverage: No object file for requested architecture - xcode

I am learning code coverage for iOS,and I want to create code coverage reports for IOS unit tests,and I use
“xcrun llvm-cov report -instr-profile */Coverage.profdata */CodeCoverage/Products/Debug-iphonesimulator/XXX.app/XXX”
But always have the error:
Failed to load coverage: No object file for requested architecture
How could the error be solved?
Please help.

Related

Cannot use object of type Illuminate\Support\Facades\Config as array error while running test commad with coverage report

I have one project with Laravel 9 and I am performing testing with coverage report on it, The test cases successfully passed but I'm getting the below error, and if I remove --coverage-html tmp/coverage from command it's working fine. It means this error are occurring while generating a coverage report.
Please help me to figure out this issue.
Command:
XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-html tmp/coverage
Error:
Generating code coverage report in HTML format ... Cannot use object of type Illuminate\Support\Facades\Config as array
Note: I haven't written any new test cases it has only default two test files which come with the default laravel setup.

There is no .trace file found for performance profile ‘Leaks’

Following this example and using Javascript, get the following error when run my tests. The error is generated on the following command:
enter code heredriver.executeScript('mobile: stopPerfRecord', [
{ profileName: 'Leaks' },
]);
Error:
Got this error “Request failed with status 500 due to An unknown server-side error occurred while processing the command. Original error: There is no .trace file found for performance profile ‘Time Profiler’ and device XXXX. Make sure the selected profile is supported on this device”

Missing productTypeIdentifier error using new Apple Build System (xcbuild)

I have an XCode project that builds with the legacy build system, but when using the new build system under xcode11 immediately fails with the err:
.. forcing incremental PIF cache clear after loading error: Required key 'productTypeIdentifier' is missing in StandardTarget dictionary
note: Using new build system
error: Build service could not start build operation: unknown error while handling message: MsgHandlingError(message: "no PIF transfer has been initiated")
I'm looking for any info that might help clarify this.
What is a 'StandardTarget dictionary'? Can I add the missing key directly? Or is this a consequence some other setting?
Are there any 'PIF transfer' experts out there?

Error when running Code coverage in Visual studio using Chutzpah

Trying to run the code coverage in Visual studio using Chutzpah, but getting the below error.
Log Message: waiting for blanket... from
C:\Users\gorulra\Desktop\Raja\FrontEndTools\FrontEndTools.WebUI.Scripts.Test\Tests123\Services\dataService.spec.js
Error: Error: Instrumentation error, you cannot redefine the 'window' variable in file:///C:/Users/gorulra/Desktop/Raja/FrontEndTools/FrontEndTools.WebUI.Scripts.Test/Scripts/vendor/js/angular.js:996 in file:///C:/Users/gorulra/AppData/Local/Microsoft/VisualStudio/12.0/Extensions/diby4xuj.1y3/TestFiles/Coverage/blanket_jasmine_v2.js (line 4253)
While Running:C:\Users\gorulra\Desktop\Raja\FrontEndTools\FrontEndTools.WebUI.Scripts.Test\Tests123\Services\dataService.spec.js Error: Error: error loading source script in file:///C:/Users/gorulra/AppData/Local/Microsoft/VisualStudio/12.0/Extensions/diby4xuj.1y3/TestFiles/Coverage/blanket_jasmine_v2.js (line 5141) While Running:C:\Users\gorulra\Desktop\Raja\FrontEndTools\FrontEndTools.WebUI.Scripts.Test\Tests123\Services\dataService.spec.js
Error: Timeout occurred when executing test file While Running:C:\Users\gorulra\Desktop\Raja\FrontEndTools\FrontEndTools.WebUI.Scripts.Test\Tests123\Services\dataService.spec.js
========== Total Tests: 0 passed, 0 failed, 0 total ==========
This is due to an error in blanket.js. See issue for a discussion.
The suggested workaround is to reference the minified version of angular.js, which will resolved the 'window' redefine issue and allow you to run the code coverage in chutzpah.

Webcam Performance System Test - WNCameraRequirements - Error: parseEtl Failed with error REGDB_E_CLASSNOTREG (0x80040154)

I am running whck performance tests on our camera, the test that currently fails is:
Webcam Performance System Test - WNCameraRequirements
the test iterates thourgh the camera media types and records a etl file as expected, its stops and closes the camera but then the test fails due to the parsing of the etl file, the logs:
Start Operation: parseEtl average 250 endGuid
{B8197C10-845F-40ca-82AB-9341E98CFC2B} endId 215 max 275 name Time to
switch Preview MediaTypes scenario DiffEventSeries skip 1 startGuid
{B8197C10-845F-40ca-82AB-9341E98CFC2B} startId 243
Parsing Etl: previewIterateMediaTypes_7-20_10-22-58.etl
Warning: CoCreateInstance(CLSID_EtwFilter, NULL, CLSCTX_ALL, IID_IEtwFilter,
(void**)spEtwFilter.ReleaseAndGetAddressOf()) failed with
REGDB_E_CLASSNOTREG (0x80040154)
Warning:
* File: testsrc\multimediatest\common\helpers\capture\videocaptureperf\videocaptureperf.cpp
Ln: 260
Warning: DiffEventSeries( etlFileName, pszStartEventGuid,
startId, pszEndEventGuid, endId, &min, &max, &ave, skip,
m_spLog.Get()) failed with REGDB_E_CLASSNOTREG (0x80040154)
Warning:
* File: testsrc\multimediatest\common\helpers\capture\captureengine\captureengineautomation.cpp
Ln: 2109
Error: parseEtl Failed with error REGDB_E_CLASSNOTREG
(0x80040154)
I tried searcing for a missing dll for ETW but I found nothing related. seems like theres a bug in the whck test while trying to parse the generated etl file... is this Error seems familier to anyone??
thanks!
I used the wrong whql tests platform version (needed x64), and I needed to regsvr32 etwpatterns.dll. that being said, this test is filtered out by microsoft (whql filters) so we eventually ignored it.

Resources