Test parallelism with IntelliJ and TestNG

后端 未结 5 2016
深忆病人
深忆病人 2021-02-08 16:12

I\'m attempting to run some TestNG tests in parallel but don\'t have access to a testng.xml as IntelliJ builds it on the fly. I\'ve tried adding parameters such as \'parallel=m

5条回答
  •  悲&欢浪女
    2021-02-08 16:34

    You can't set this up with annotations. It must be configured in the XML. You need to set up an XML template. In eclipse it would be windows -> preferences -> testNG Template XML File.

    Use an XML file that has all your parallel and usual optins and when you run as testNG it will replace only the section, while maintaining your other settings.

提交回复
热议问题