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

Build with Swift on macOS and add coverage reporting #10

Merged
merged 2 commits into from
May 24, 2021
Merged

Conversation

kdubb
Copy link
Contributor

@kdubb kdubb commented May 24, 2021

Using xcodebuild on macOS encounters random failures in simple tests. Switching to swift build test to see if it has more stability.

Along for the ride comes easy test coverage reporting.

@github-actions
Copy link

Total Coverage: 73.80%

Coverage Report
FileBranchesFuncsLinesUncovered Lines
Sources/Sunday
   AnyTextMediaTypeDecodable.swift100%100%100%
   CharSets.swift100%0%0%29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40
   CustomHeaderConvertible.swift100%0%0%30
   Description.swift100%85.71%94.44%
   DispatchTimeIntervals.swift100%50%50%32, 33, 34, 35, 36, 37, 38, 39, 40
   EventParser.swift100%100%98.79%77, 78
   EventPublisher.swift100%64.29%84.34%106, 107, 113, 114, 73, 93, 97, 98
   EventSource.swift100%69.86%91.37%217, 229, 253, 254, 281, 282, 283, 284, 285, 286, 308, 309, 310, 311, 312, 313, 324, 339, 378
   HTTP.swift100%0%0%80, 81, 82
   HTTPURLResponses.swift100%33.33%36.36%39, 40, 41, 42, 43
   HeaderParameters.swift100%100%100%
   MediaType.swift100%96.30%96.92%120, 142, 211
   MediaTypeDecoders.swift100%95.24%98.82%
   MediaTypeEncoders.swift100%95.45%94.62%173, 174, 175, 176
   NetworkRequestAdapters.swift100%90.91%95.31%123, 124
   NetworkRequestFactory.swift100%72%88.02%103, 215, 224, 258, 267, 284, 285, 286, 308, 309, 310, 311, 312, 313, 315, 316, 317, 318, 319, 320, 398, 414, 415, 416, 417, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 96
   NetworkSession.swift100%91.67%95.59%67, 91
   NetworkSessionDataTaskStreamPublisher.swift100%100%93.70%120, 124, 125, 145, 158, 75, 76, 77
   NetworkSessionDelegate.swift100%37.04%25.89%100, 101, 103, 104, 105, 106, 114, 115, 116, 117, 118, 119, 120, 121, 122, 129, 130, 131, 132, 133, 134, 135, 136, 137, 143, 144, 145, 146, 147, 148, 149, 150, 151, 203, 212, 213, 214, 215, 216, 217, 223, 224, 225, 226, 227, 228, 236, 253, 265, 266, 267, 268, 269, 270, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 312, 313, 314, 315, 316, 317, 319, 320, 321, 322, 323, 324, 326, 327, 328, 329, 330, 331, 338, 339, 340, 341, 342, 343, 353, 354, 355, 356, 357, 358, 366, 367, 368, 369, 370, 371, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 93, 94, 95, 96, 97, 98, 99
   PathParameterConvertible.swift100%0%0%31, 32, 33
   Problem.swift100%80.95%87.07%138, 139, 140, 141, 142, 146, 147, 148, 149, 150, 154, 155, 156, 157, 158
   ServerTrustPolicyManager.swift100%0%0%112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 231, 232, 233, 234, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 251, 252, 253, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 37, 38, 39, 49, 50, 51
   ServiceLocator.swift100%0%0%28, 29, 30, 31, 32, 33, 34, 35, 44, 51, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 94, 95, 96, 97
   URI.swift100%100%100%
   URITemplate.swift100%100%98.53%90
   URLRequests.swift100%85.71%80%54, 55, 56, 57, 58, 59, 60
   URLSessionConfigurations.swift100%50%81.25%43, 44, 45, 72, 73, 74
   WWWFormURLEncoder.swift100%91.67%97.12%118, 163
Sources/SundayServer
   HTTPConnection.swift100%74%81.82%140, 141, 161, 162, 163, 164, 204, 205, 210, 211, 213, 214, 215, 217, 218, 219, 252, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289
   HTTPExchange.swift100%50%52.94%126, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147
   HTTPHeaderParser.swift100%74.07%75.18%120, 121, 131, 139, 140, 170, 180, 186, 191, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 264, 280, 289, 290, 291, 91, 99
   HTTPRequest.swift100%77.78%42.86%58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68
   HTTPResponse.swift100%55%36.73%142, 143, 144, 150, 151, 152, 153, 154, 155, 156, 157, 158, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 186, 187, 188, 213, 214, 215, 229, 230, 231, 233, 234, 235
   HTTPServer.swift100%73.68%88.89%72, 73, 84, 85, 86, 87, 88, 89, 90, 91, 92
   Routable.swift100%75%75%51, 52, 53, 71
   RoutableContentNegotiation.swift100%100%100%
   RoutableDebug.swift100%100%95%33
   RoutableMethod.swift100%34.78%36.12%114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 186, 187, 188, 195, 196, 197, 205, 206, 207, 216, 217, 218, 221, 222, 223, 228, 229, 230, 245, 246, 247, 255, 256, 257, 266, 267, 268, 295, 296, 297, 305, 306, 307, 316, 317, 318, 321, 322, 323, 336, 337, 338, 345, 346, 347, 355, 356, 357, 366, 367, 368, 371, 372, 373, 378, 379, 380, 386, 387, 388, 395, 396, 397, 405, 406, 407, 416, 417, 418, 47, 50, 56, 57, 58, 59, 60, 61, 62, 63
   RoutableParam.swift100%17.24%20.66%100, 101, 102, 107, 108, 109, 110, 111, 112, 113, 115, 116, 117, 122, 123, 124, 125, 126, 127, 128, 141, 142, 143, 34, 35, 36, 37, 38, 39, 41, 42, 43, 44, 45, 46, 59, 60, 61, 63, 64, 65, 66, 67, 68, 70, 71, 72, 73, 74, 75, 77, 78, 79, 81, 82, 83, 84, 85, 86, 88, 89, 90
   RoutablePath.swift100%50%66.04%74, 75, 76, 78, 79, 80, 89, 90, 91, 93, 94, 95, 96, 97, 98, 99
   RoutableQueues.swift100%0%0%25, 26, 27, 28, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40
   RoutableRequestDecoding.swift100%100%92.73%107, 108, 66, 88, 94, 95, 96, 97
   RoutableResponseEncoding.swift100%50%73.50%106, 107, 108, 124, 126, 130, 133, 134, 135, 137, 138, 139, 141, 142, 143, 153, 154, 155, 157, 158, 159, 161, 162, 163, 169, 186, 68, 79, 85
   RoutingHTTPServer.swift100%100%95.65%46, 53

@kdubb kdubb changed the title Add coverage reporting Build with Swift on macOS and add coverage reporting May 24, 2021
@kdubb kdubb merged commit 4c73437 into main May 24, 2021
@kdubb kdubb deleted the fix/build branch May 24, 2021 01:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant