XCTest UI can not run by only-testing

0
jirath
asked 5 years ago258 views
2 Answers
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.

answered 5 years ago
0

Hi Scott.

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

jirath
answered 5 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions