clion swift testing internal classes?
It seems I am either missing something massively important or testing swift in CLion is broken - which sadly makes it unusable for me. Here's my latest problem that I am hoping someone with some expertise can help me fix. The problem is that @testable doesn't seem to work. This time I created a new project and wrote the minimum code I could.
I created a swift project and added a class with a static property. Then I added a test to the generated tests. In the test I do an XCTAssertTrue to check the value of the property. From what I can tell from Apple's documentation I need to import the new class using @testable so the tests can access it. What happens is CLion gives me an error saying I have undefined symbols.
Any suggestions on how to get the basics of swift unit testing working in CLion is greatly appreciated.
请先登录再写评论。
The issue created by the user - https://youtrack.jetbrains.com/issue/CPP-24184