Skip to content

Commit

Permalink
enable calculation of codecoverage
Browse files Browse the repository at this point in the history
  • Loading branch information
kosyloa committed Jan 4, 2024
1 parent 44681ac commit ceb4ef0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions DXFeedFramework.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3406,6 +3406,7 @@
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = "";
GCC_GENERATE_TEST_COVERAGE_FILES = NO;
GENERATE_INFOPLIST_FILE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 16.2;
MACOSX_DEPLOYMENT_TARGET = 12.0;
Expand All @@ -3427,6 +3428,7 @@
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = "";
GCC_GENERATE_TEST_COVERAGE_FILES = NO;
GENERATE_INFOPLIST_FILE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 16.2;
MACOSX_DEPLOYMENT_TARGET = 12.0;
Expand Down
1 change: 0 additions & 1 deletion DXFeedFrameworkTests/DXFeedAllTests.xctestplan
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"addressSanitizer" : {
"enabled" : true
},
"codeCoverage" : false,
"commandLineArgumentEntries" : [

],
Expand Down
2 changes: 1 addition & 1 deletion DXFeedFrameworkTests/DXObservableSubscriptionTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ final class DXObservableSubscriptionTest: XCTestCase {
symbols.forEach { symbol in
if let sSymbol = symbol as? Symbol {
if sSymbol.stringValue.hasSuffix(":TEST") {
var profile = Profile(sSymbol.stringValue)
let profile = Profile(sSymbol.stringValue)
profile.descriptionStr = DXObservableSubscriptionTest.profileDescription
events.append(profile)
}
Expand Down
6 changes: 6 additions & 0 deletions DXFeedFrameworkTests/DXTimeSeriesSubscriptionTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ final class DXTimeSeriesSubscriptionTest: XCTestCase {
try createSubscriptionFor(multiple: true)
}

func testCreateWithNil() throws {
XCTAssertThrowsError(try DXFeedTimeSeriesSubscription(native: nil, events: [.candle])) { error in
XCTAssertTrue(error is ArgumentException)
}
}

func createSubscriptionFor(multiple: Bool) throws {
let endpoint = try DXEndpoint.create().connect("demo.dxfeed.com:7300")
let feed = endpoint.getFeed()
Expand Down

0 comments on commit ceb4ef0

Please sign in to comment.