XCTest UI can not run by only-testing

0
jirath
gefragt vor 5 Jahren269 Aufrufe
2 Antworten
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.

beantwortet vor 5 Jahren
0

Hi Scott.

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

jirath
beantwortet vor 5 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen