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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ