-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integration on linux with "--enable-test-discovery" #11
Comments
When you build on linux environment you have to add test observer ( |
Yes, this is basically using the old For a CI/CD integration that automatically adds news tests, I was hoping that there are other options to enable the observer without having to use |
A hack I'm using is to create a test file import XCTest
import SwiftTestReporter
class AATests: XCTestCase {
func testAA() {
_ = TestObserver()
}
} This works because only tests that start after the initialization will be captured, and (currently) spm evaluates tests in alphabetical order. If test order randomization happens one day this technique wouldn't work with that. Another hack I thought of would be to make an Objective-C class that implements |
Hi,
is there a way to use it with "--enable-test-discovery"?
As tests for linux are now automatically synthesised there is no LinuxMain.swift anymore.
Best, Patrick
The text was updated successfully, but these errors were encountered: