Firebase TestLab on IOS - the .xctestrun file didn't specify any test targets










1















I'm trying to use firebase TestLab on iOS using this guide:



https://firebase.google.com/docs/test-lab/ios/firebase-console#build_xctests_for_your_app



but after I upload the zip file including the xctestrun file I'm getting the following error:



Upload invalid: the .xctestrun file didn't specify any test targets.


I have two targets in my app and a Tests target and a UI tests target,
On both test target, I set the Target I want to test as the host application.



Any ideas?










share|improve this question
























  • Have you checked the contents of the xctestrun file? Is it not empty? The best way to get help with this issue is to join the Firebase Community and post this question along with your test matrix ID in the #test-lab channel on Slack. Someone from the Test Lab team will help you out.

    – maik
    Nov 12 '18 at 18:24











  • What could have happened that while building you only built your app target, but not your test targets. In that case the .xctestrun file would be empty.

    – maik
    Nov 12 '18 at 18:54















1















I'm trying to use firebase TestLab on iOS using this guide:



https://firebase.google.com/docs/test-lab/ios/firebase-console#build_xctests_for_your_app



but after I upload the zip file including the xctestrun file I'm getting the following error:



Upload invalid: the .xctestrun file didn't specify any test targets.


I have two targets in my app and a Tests target and a UI tests target,
On both test target, I set the Target I want to test as the host application.



Any ideas?










share|improve this question
























  • Have you checked the contents of the xctestrun file? Is it not empty? The best way to get help with this issue is to join the Firebase Community and post this question along with your test matrix ID in the #test-lab channel on Slack. Someone from the Test Lab team will help you out.

    – maik
    Nov 12 '18 at 18:24











  • What could have happened that while building you only built your app target, but not your test targets. In that case the .xctestrun file would be empty.

    – maik
    Nov 12 '18 at 18:54













1












1








1








I'm trying to use firebase TestLab on iOS using this guide:



https://firebase.google.com/docs/test-lab/ios/firebase-console#build_xctests_for_your_app



but after I upload the zip file including the xctestrun file I'm getting the following error:



Upload invalid: the .xctestrun file didn't specify any test targets.


I have two targets in my app and a Tests target and a UI tests target,
On both test target, I set the Target I want to test as the host application.



Any ideas?










share|improve this question
















I'm trying to use firebase TestLab on iOS using this guide:



https://firebase.google.com/docs/test-lab/ios/firebase-console#build_xctests_for_your_app



but after I upload the zip file including the xctestrun file I'm getting the following error:



Upload invalid: the .xctestrun file didn't specify any test targets.


I have two targets in my app and a Tests target and a UI tests target,
On both test target, I set the Target I want to test as the host application.



Any ideas?







ios firebase unit-testing firebase-test-lab






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 12 '18 at 15:16









Frank van Puffelen

230k28376400




230k28376400










asked Nov 12 '18 at 14:07









aviv_elkaviv_elk

1311416




1311416












  • Have you checked the contents of the xctestrun file? Is it not empty? The best way to get help with this issue is to join the Firebase Community and post this question along with your test matrix ID in the #test-lab channel on Slack. Someone from the Test Lab team will help you out.

    – maik
    Nov 12 '18 at 18:24











  • What could have happened that while building you only built your app target, but not your test targets. In that case the .xctestrun file would be empty.

    – maik
    Nov 12 '18 at 18:54

















  • Have you checked the contents of the xctestrun file? Is it not empty? The best way to get help with this issue is to join the Firebase Community and post this question along with your test matrix ID in the #test-lab channel on Slack. Someone from the Test Lab team will help you out.

    – maik
    Nov 12 '18 at 18:24











  • What could have happened that while building you only built your app target, but not your test targets. In that case the .xctestrun file would be empty.

    – maik
    Nov 12 '18 at 18:54
















Have you checked the contents of the xctestrun file? Is it not empty? The best way to get help with this issue is to join the Firebase Community and post this question along with your test matrix ID in the #test-lab channel on Slack. Someone from the Test Lab team will help you out.

– maik
Nov 12 '18 at 18:24





Have you checked the contents of the xctestrun file? Is it not empty? The best way to get help with this issue is to join the Firebase Community and post this question along with your test matrix ID in the #test-lab channel on Slack. Someone from the Test Lab team will help you out.

– maik
Nov 12 '18 at 18:24













What could have happened that while building you only built your app target, but not your test targets. In that case the .xctestrun file would be empty.

– maik
Nov 12 '18 at 18:54





What could have happened that while building you only built your app target, but not your test targets. In that case the .xctestrun file would be empty.

– maik
Nov 12 '18 at 18:54












2 Answers
2






active

oldest

votes


















1














This probably happened because you testing targets are not part of the scheme when building.



Take a look at the .xctestrun and see if it is an empty .plist file. If it's empty then add the testing targets when building.






share|improve this answer






























    1














    In my case the following order of actions helped:



    1. open your app's .xcworkspace file

    2. go to File -> New -> Target

    3. choose "iOS Unit Testing Bundle" and press the button Next

    4. check the credentials like Product Name, Team, Bundle Identifier, etc. and then press the button Finish

    Now you need to make a new attempt to build for testing (Product -> Build For -> Testing) and follow the Firebase instruction regarding creating an archive






    share|improve this answer






















      Your Answer






      StackExchange.ifUsing("editor", function ()
      StackExchange.using("externalEditor", function ()
      StackExchange.using("snippets", function ()
      StackExchange.snippets.init();
      );
      );
      , "code-snippets");

      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "1"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53263865%2ffirebase-testlab-on-ios-the-xctestrun-file-didnt-specify-any-test-targets%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      1














      This probably happened because you testing targets are not part of the scheme when building.



      Take a look at the .xctestrun and see if it is an empty .plist file. If it's empty then add the testing targets when building.






      share|improve this answer



























        1














        This probably happened because you testing targets are not part of the scheme when building.



        Take a look at the .xctestrun and see if it is an empty .plist file. If it's empty then add the testing targets when building.






        share|improve this answer

























          1












          1








          1







          This probably happened because you testing targets are not part of the scheme when building.



          Take a look at the .xctestrun and see if it is an empty .plist file. If it's empty then add the testing targets when building.






          share|improve this answer













          This probably happened because you testing targets are not part of the scheme when building.



          Take a look at the .xctestrun and see if it is an empty .plist file. If it's empty then add the testing targets when building.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 19 '18 at 21:48









          maikmaik

          1,4771225




          1,4771225























              1














              In my case the following order of actions helped:



              1. open your app's .xcworkspace file

              2. go to File -> New -> Target

              3. choose "iOS Unit Testing Bundle" and press the button Next

              4. check the credentials like Product Name, Team, Bundle Identifier, etc. and then press the button Finish

              Now you need to make a new attempt to build for testing (Product -> Build For -> Testing) and follow the Firebase instruction regarding creating an archive






              share|improve this answer



























                1














                In my case the following order of actions helped:



                1. open your app's .xcworkspace file

                2. go to File -> New -> Target

                3. choose "iOS Unit Testing Bundle" and press the button Next

                4. check the credentials like Product Name, Team, Bundle Identifier, etc. and then press the button Finish

                Now you need to make a new attempt to build for testing (Product -> Build For -> Testing) and follow the Firebase instruction regarding creating an archive






                share|improve this answer

























                  1












                  1








                  1







                  In my case the following order of actions helped:



                  1. open your app's .xcworkspace file

                  2. go to File -> New -> Target

                  3. choose "iOS Unit Testing Bundle" and press the button Next

                  4. check the credentials like Product Name, Team, Bundle Identifier, etc. and then press the button Finish

                  Now you need to make a new attempt to build for testing (Product -> Build For -> Testing) and follow the Firebase instruction regarding creating an archive






                  share|improve this answer













                  In my case the following order of actions helped:



                  1. open your app's .xcworkspace file

                  2. go to File -> New -> Target

                  3. choose "iOS Unit Testing Bundle" and press the button Next

                  4. check the credentials like Product Name, Team, Bundle Identifier, etc. and then press the button Finish

                  Now you need to make a new attempt to build for testing (Product -> Build For -> Testing) and follow the Firebase instruction regarding creating an archive







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jan 4 at 4:43









                  Mary SeleznovaMary Seleznova

                  469




                  469



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53263865%2ffirebase-testlab-on-ios-the-xctestrun-file-didnt-specify-any-test-targets%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      How to how show current date and time by default on contact form 7 in WordPress without taking input from user in datetimepicker

                      Syphilis

                      Darth Vader #20