Coverage file is not getting generated using bullseye with XCode

戏子无情 提交于 2020-08-10 19:30:49

问题


I am trying to integrate BullsEye 8.14.0 with Xcode 10.12. Following are the steps that I followed:

  1. mkdir -p $HOME/Library/LaunchAgents

2.Create the file $HOME/Library/LaunchAgents/BullseyeCoverage.plist with contents like below.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
    <dict>
        <key>Label</key>
        <string>BullseyeCoverage</string>
        <key>ProgramArguments</key>
        <array>
            <string>/bin/launchctl</string>
            <string>setenv</string>
            <string>COVFILE</string>
            <string>path</string>
        </array>
        <key>RunAtLoad</key>
        <true/>
    </dict>
</plist>

Path I have given as $HOME/Desktop/BEC/test123.cov and also tried with Users/myUserName/Desktop/BEC/test123.cov

  1. Add an export command like shown below to the file $HOME/.bash_profile. export COVFILE=path

  2. Added export PATH=$PATH:/Applications/BullseyeCoverage/bin, in .bash_profile as the first entry.

  3. Then built the xcode project as usual.

Followed the document https://www.bullseye.com/help/tool-xcode.html, in short.

But after doing all this, I should be seeing a test123.cov file generated after the successful build with all the APIs listed, which I couldn"t see. Am I missing anything?

来源:https://stackoverflow.com/questions/62401937/coverage-file-is-not-getting-generated-using-bullseye-with-xcode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!