XCTest UI can not run by only-testing

0
jirath
已提问 5 年前269 查看次数
2 回答
0

Hi jirath,

I was able to get the only-testing option working with your app. In your custom environment test spec file, you included the option with the following naming structure
"ProjectName/ClassName/TestName"

When looking at your logs from the run where you did not use only-testing, I could see that xcode was calling "ProjectName/(ProjectName but with '_' instead of '-').ClassName/TestName"

So the only thing you have to do is replace ClassName in your test spec file with (ProjectName but with '_' instead of '-').ClassName, such as:

-only-testing:ProjectName/(ProjectName but with '_' instead of '-').ClassName/TestName

Let me know if this naming structure makes sense to you, and if not, I send you a private message with the exact wording you should use in your test spec file.

Scott.

已回答 5 年前
0

Hi Scott.

It can run only-testing with "ProjectName/(ProjectName but with '_' instead of '-').ClassName/TestName" success thank you :)

jirath
已回答 5 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则