Skip to content
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

CI testing PR - DO NOT MERGE #383

Closed
wants to merge 10 commits into from
Prev Previous commit
Next Next commit
Stop BugsnagPerformance start from being called in unit tests
kstenerud committed Jan 27, 2025
commit 0cb0cd0e3c6d9247b37ce2f64edd2350df1b221e
28 changes: 14 additions & 14 deletions Tests/BugsnagPerformanceTests/BugsnagPerformanceTests.mm
Original file line number Diff line number Diff line change
@@ -15,19 +15,19 @@ @interface BugsnagPerformanceTests : XCTestCase

@implementation BugsnagPerformanceTests

- (void)setUp {
auto config = [[BugsnagPerformanceConfiguration alloc] initWithApiKey:@"0123456789abcdef0123456789abcdef"];
config.endpoint = [NSURL URLWithString:@"http://localhost"];
config.autoInstrumentNetworkRequests = NO;
config.autoInstrumentAppStarts = NO;
config.autoInstrumentViewControllers = NO;
[BugsnagPerformance startWithConfiguration:config];
}

- (void)testStartSpanWithName {
auto span = [BugsnagPerformance startSpanWithName:@"Test"];
XCTAssertNotNil(span);
[span end];
}
//- (void)setUp {
// auto config = [[BugsnagPerformanceConfiguration alloc] initWithApiKey:@"0123456789abcdef0123456789abcdef"];
// config.endpoint = [NSURL URLWithString:@"http://localhost"];
// config.autoInstrumentNetworkRequests = NO;
// config.autoInstrumentAppStarts = NO;
// config.autoInstrumentViewControllers = NO;
// [BugsnagPerformance startWithConfiguration:config];
//}
//
//- (void)testStartSpanWithName {
// auto span = [BugsnagPerformance startSpanWithName:@"Test"];
// XCTAssertNotNil(span);
// [span end];
//}

@end