Saturday, November 21, 2026
HomeiOS Developmentios - The way to group take a look at instances of...

ios – The way to group take a look at instances of every function in a take a look at plan

[ad_1]

In our mission I discovered the take a look at instances had been duplicated showing in every function group. To display this drawback, I created a small mission.

enter image description here

Demo mission
https://github.com/Haibo-Zhou/TestPlanTackle

Take a look at file construction:

AutomatedRegression -> MyXCTestBase -> XCTestCase

And all take a look at instances are below AutomatedRegression, Characteristic teams A & B embody the take a look at instances, they usually each have a category file for grouping use.

enter image description here

The issue is after making a take a look at plan for it, every function group will embody all of the exams, which you could possibly see from above screenshot. And I feel the reason being that all of them inherit from AutomatedRegression class.

So how may I group them correctly? As a result of we must always have the ability run a particular function group in a take a look at plan.

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments