kylef / Spectre

BDD Framework and test runner for Swift projects and playgrounds

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ability to start tests from Xcode

Igor-Palaguta opened this issue · comments

All of Spectre tests added to global contexts start in atexit. XCode always says that they are passed. As really Spectre tests has not started yet.

If we start them manually with run. XCode also fails, as inside run exit is called.

Is there any plan to add ability testing with XCode?

I've wanted to be able to support this for some time.

Using the Objective-C runtime we could create a specific Xcode/XCTest reporter which would actually create XCTestCase subclasses and test methods dynamically in the run-time and map Spectre test cases over to them.

Unfortunately I haven't had much free time to explore this idea further, but I think it is feasible to implement.

I created #2 a while back to track this.