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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠