Can I run several iOS UI Tests in Parallel?











up vote
5
down vote

favorite
1












I'm working on building a UI Test suite for my iOS app. I need to test my app's functionality on several different devices, but right now I have to select the simulator I want, run the tests, and then repeat.



Now that Xcode supports multiple simulators running in parallel, is there a way to run the UI tests across several different device simulators at the same time?










share|improve this question






















  • Have you checked github.com/linkedin/bluepill ?
    – Titouan de Bailleul
    Dec 12 '17 at 14:56










  • I was able to this by following this guide: medium.com/@t.camin/parallelizing-ui-tests-28c16000f141.
    – CF256
    Dec 12 '17 at 15:11















up vote
5
down vote

favorite
1












I'm working on building a UI Test suite for my iOS app. I need to test my app's functionality on several different devices, but right now I have to select the simulator I want, run the tests, and then repeat.



Now that Xcode supports multiple simulators running in parallel, is there a way to run the UI tests across several different device simulators at the same time?










share|improve this question






















  • Have you checked github.com/linkedin/bluepill ?
    – Titouan de Bailleul
    Dec 12 '17 at 14:56










  • I was able to this by following this guide: medium.com/@t.camin/parallelizing-ui-tests-28c16000f141.
    – CF256
    Dec 12 '17 at 15:11













up vote
5
down vote

favorite
1









up vote
5
down vote

favorite
1






1





I'm working on building a UI Test suite for my iOS app. I need to test my app's functionality on several different devices, but right now I have to select the simulator I want, run the tests, and then repeat.



Now that Xcode supports multiple simulators running in parallel, is there a way to run the UI tests across several different device simulators at the same time?










share|improve this question













I'm working on building a UI Test suite for my iOS app. I need to test my app's functionality on several different devices, but right now I have to select the simulator I want, run the tests, and then repeat.



Now that Xcode supports multiple simulators running in parallel, is there a way to run the UI tests across several different device simulators at the same time?







ios xcode ios-simulator xcode-ui-testing ui-testing






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 11 '17 at 14:54









Bill

17.8k2195183




17.8k2195183












  • Have you checked github.com/linkedin/bluepill ?
    – Titouan de Bailleul
    Dec 12 '17 at 14:56










  • I was able to this by following this guide: medium.com/@t.camin/parallelizing-ui-tests-28c16000f141.
    – CF256
    Dec 12 '17 at 15:11


















  • Have you checked github.com/linkedin/bluepill ?
    – Titouan de Bailleul
    Dec 12 '17 at 14:56










  • I was able to this by following this guide: medium.com/@t.camin/parallelizing-ui-tests-28c16000f141.
    – CF256
    Dec 12 '17 at 15:11
















Have you checked github.com/linkedin/bluepill ?
– Titouan de Bailleul
Dec 12 '17 at 14:56




Have you checked github.com/linkedin/bluepill ?
– Titouan de Bailleul
Dec 12 '17 at 14:56












I was able to this by following this guide: medium.com/@t.camin/parallelizing-ui-tests-28c16000f141.
– CF256
Dec 12 '17 at 15:11




I was able to this by following this guide: medium.com/@t.camin/parallelizing-ui-tests-28c16000f141.
– CF256
Dec 12 '17 at 15:11












2 Answers
2






active

oldest

votes

















up vote
2
down vote













Run the following command in the same directory as your project to run your tests in parallel from the command line:



xcodebuild test -scheme "YourSchemeName" -destination 'platform=iOS Simulator,OS=11.2,name=iPhone 8' -destination 'platform=iOS Simulator,OS=11.2,name=iPhone 6s'  -configuration "Debug" ENABLE_TESTABILITY=YES SWIFT_VERSION=4.0 ONLY_ACTIVE_ARCH=YES


You can add -destination 'platform=iOS Simulator,OS=11.2,name=iPhone 8' for a different destination for as many different destinations as you would like.



For a list of simulator names and OSs that are available, run the command:



instruments -s devices


Bear in mind that if you are running tests in the simulator, you will not see the simulators on your screen when running tests through the command line.






share|improve this answer




























    up vote
    0
    down vote














    1. Select your target scheme in Xcode, and "Edit Scheme..."

    2. Find the settings for "Test", and press on the "Info" tab

    3. You'll see a list of your Unit and UI tests, press on the associated
      "Options..." button

    4. Select "Execute in parallel on Simulator"

    5. Optionally select "Randomize execution order"


    Enable Parallel Testing






    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',
      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%2f47755560%2fcan-i-run-several-ios-ui-tests-in-parallel%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








      up vote
      2
      down vote













      Run the following command in the same directory as your project to run your tests in parallel from the command line:



      xcodebuild test -scheme "YourSchemeName" -destination 'platform=iOS Simulator,OS=11.2,name=iPhone 8' -destination 'platform=iOS Simulator,OS=11.2,name=iPhone 6s'  -configuration "Debug" ENABLE_TESTABILITY=YES SWIFT_VERSION=4.0 ONLY_ACTIVE_ARCH=YES


      You can add -destination 'platform=iOS Simulator,OS=11.2,name=iPhone 8' for a different destination for as many different destinations as you would like.



      For a list of simulator names and OSs that are available, run the command:



      instruments -s devices


      Bear in mind that if you are running tests in the simulator, you will not see the simulators on your screen when running tests through the command line.






      share|improve this answer

























        up vote
        2
        down vote













        Run the following command in the same directory as your project to run your tests in parallel from the command line:



        xcodebuild test -scheme "YourSchemeName" -destination 'platform=iOS Simulator,OS=11.2,name=iPhone 8' -destination 'platform=iOS Simulator,OS=11.2,name=iPhone 6s'  -configuration "Debug" ENABLE_TESTABILITY=YES SWIFT_VERSION=4.0 ONLY_ACTIVE_ARCH=YES


        You can add -destination 'platform=iOS Simulator,OS=11.2,name=iPhone 8' for a different destination for as many different destinations as you would like.



        For a list of simulator names and OSs that are available, run the command:



        instruments -s devices


        Bear in mind that if you are running tests in the simulator, you will not see the simulators on your screen when running tests through the command line.






        share|improve this answer























          up vote
          2
          down vote










          up vote
          2
          down vote









          Run the following command in the same directory as your project to run your tests in parallel from the command line:



          xcodebuild test -scheme "YourSchemeName" -destination 'platform=iOS Simulator,OS=11.2,name=iPhone 8' -destination 'platform=iOS Simulator,OS=11.2,name=iPhone 6s'  -configuration "Debug" ENABLE_TESTABILITY=YES SWIFT_VERSION=4.0 ONLY_ACTIVE_ARCH=YES


          You can add -destination 'platform=iOS Simulator,OS=11.2,name=iPhone 8' for a different destination for as many different destinations as you would like.



          For a list of simulator names and OSs that are available, run the command:



          instruments -s devices


          Bear in mind that if you are running tests in the simulator, you will not see the simulators on your screen when running tests through the command line.






          share|improve this answer












          Run the following command in the same directory as your project to run your tests in parallel from the command line:



          xcodebuild test -scheme "YourSchemeName" -destination 'platform=iOS Simulator,OS=11.2,name=iPhone 8' -destination 'platform=iOS Simulator,OS=11.2,name=iPhone 6s'  -configuration "Debug" ENABLE_TESTABILITY=YES SWIFT_VERSION=4.0 ONLY_ACTIVE_ARCH=YES


          You can add -destination 'platform=iOS Simulator,OS=11.2,name=iPhone 8' for a different destination for as many different destinations as you would like.



          For a list of simulator names and OSs that are available, run the command:



          instruments -s devices


          Bear in mind that if you are running tests in the simulator, you will not see the simulators on your screen when running tests through the command line.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 13 '17 at 10:39









          Oletha

          3,83711126




          3,83711126
























              up vote
              0
              down vote














              1. Select your target scheme in Xcode, and "Edit Scheme..."

              2. Find the settings for "Test", and press on the "Info" tab

              3. You'll see a list of your Unit and UI tests, press on the associated
                "Options..." button

              4. Select "Execute in parallel on Simulator"

              5. Optionally select "Randomize execution order"


              Enable Parallel Testing






              share|improve this answer

























                up vote
                0
                down vote














                1. Select your target scheme in Xcode, and "Edit Scheme..."

                2. Find the settings for "Test", and press on the "Info" tab

                3. You'll see a list of your Unit and UI tests, press on the associated
                  "Options..." button

                4. Select "Execute in parallel on Simulator"

                5. Optionally select "Randomize execution order"


                Enable Parallel Testing






                share|improve this answer























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote










                  1. Select your target scheme in Xcode, and "Edit Scheme..."

                  2. Find the settings for "Test", and press on the "Info" tab

                  3. You'll see a list of your Unit and UI tests, press on the associated
                    "Options..." button

                  4. Select "Execute in parallel on Simulator"

                  5. Optionally select "Randomize execution order"


                  Enable Parallel Testing






                  share|improve this answer













                  1. Select your target scheme in Xcode, and "Edit Scheme..."

                  2. Find the settings for "Test", and press on the "Info" tab

                  3. You'll see a list of your Unit and UI tests, press on the associated
                    "Options..." button

                  4. Select "Execute in parallel on Simulator"

                  5. Optionally select "Randomize execution order"


                  Enable Parallel Testing







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 11 at 6:49









                  Mojtaba Hosseini

                  2,417523




                  2,417523






























                      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.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • 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%2f47755560%2fcan-i-run-several-ios-ui-tests-in-parallel%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

                      Florida Star v. B. J. F.

                      Danny Elfman

                      Retrieve a Users Dashboard in Tumblr with R and TumblR. Oauth Issues