Skip to content

[feat]: Add CI workflow to run tests #6

[feat]: Add CI workflow to run tests

[feat]: Add CI workflow to run tests #6

GitHub Actions / iOS 17.0 Test Results succeeded Jan 18, 2024 in 0s

Xcode test results

Testing workspace Networking with scheme Networking

Summary

TotalSuccess PassedFailure FailedSkipped SkippedExpected Failure Expected Failure⏱️ Time
30300001.08s

Test Summary

NetworkingTests

  • Device: Mac mini, 13.6.3 (22G436)
  • SDK: macOS 14.2, 14.2
TestTotalSuccessFailureSkippedExpected Failure
test-class AuthorizationTokenInterceptorTests77000
test-class EndpointIdentifiableTests11000
test-class EndpointRequestStorageProcessorTests55000
test-class ErrorProcessorTests66000
test-class MockResponseProviderTests33000
test-class MultipartFormDataEncoderTests44000
test-class StatusCodeProcessorTests44000

Failure Failures

All tests passed 🎉


Code Coverage

Coverage Covered Executable
Networking 41.06 % 822 2002
  UploadAPIManager.swift 0.00 % 0 287
  ResponseProcessing.swift 100.00 % 8 8
  AuthorizationTokenInterceptor.swift 72.94 % 62 85
  DownloadAPIManaging.swift 0.00 % 0 3
  AuthorizationError.swift 0.00 % 0 12
  EndpointRequestStorageProcessor.swift 77.17 % 196 254
  URLSessionTask+DownloadState.swift 0.00 % 0 17
  ErrorProcessing.swift 100.00 % 8 8
  RequestAdapting.swift 62.50 % 5 8
  ThreadSafeDictionary.swift 0.00 % 0 16
  Retryable.swift 96.15 % 25 26
  URLSessionTask+AsyncResponse.swift 0.00 % 0 75
  Requestable+Convenience.swift 70.91 % 78 110
  EndpointIdentifiable.swift 94.83 % 55 58
  Counter.swift 100.00 % 12 12
  MockResponseProvider.swift 97.78 % 44 45
  AuthorizationManaging.swift 100.00 % 26 26
  ArrayParameter.swift 0.00 % 0 4
  AuthorizationData.swift 85.71 % 12 14
  UploadAPIManaging.swift 0.00 % 0 11
  HTTPStatusCode.swift 75.00 % 9 12
  URL+Convenience.swift 0.00 % 0 13
  MultipartFormData.swift 41.38 % 24 58
  EndpointRequest.swift 100.00 % 5 5
  MultipeerConnectivityManager.swift 0.00 % 0 78
  APIManaging.swift 18.75 % 3 16
  StatusCodeProcessor.swift 100.00 % 19 19
  UploadTask+State.swift 0.00 % 0 27
  MultipartFormDataEncoder.swift 95.42 % 125 131
  NetworkError.swift 0.00 % 0 14
  LoggingInterceptor.swift 0.00 % 0 86
  RetryConfiguration.swift 95.00 % 19 20
  ResponseProviding.swift 100.00 % 3 3
  DownloadAPIManager.swift 0.00 % 0 297
  EndpointRequestStorageModel.swift 92.86 % 13 14
  Sequence+Convenience.swift 100.00 % 7 7
  APIManager.swift 73.44 % 47 64
  MultipartFormData+BodyPart.swift 100.00 % 17 17
  UploadTask.swift 0.00 % 0 42
Total 41.06 % 822 2002

Details

Test Details

NetworkingTestsback

AuthorizationTokenInterceptorTests back

SuccessFailureSkippedExpected Failure⏱️
7 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method testAuthenticationNotRequiredRequest()
Successtest-method testFailedRefreshWithMultipleParallelRequests()
Successtest-method testFailedRequestAuthorization()
Successtest-method testFailedTokenRefresh()
Successtest-method testSuccessfulRefreshWithMultipleParallelRequests()
Successtest-method testSuccessfulRequestAuthorization()
Successtest-method testSuccessfulTokenRefresh()

EndpointIdentifiableTests back

SuccessFailureSkippedExpected Failure⏱️
1 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method testEqualIdentifiers()

EndpointRequestStorageProcessorTests back

SuccessFailureSkippedExpected Failure⏱️
5 (100%)0 (0%)0 (0%)0 (0%)1.07s
Successtest-method testResponseStaysTheSameAfterStoringData()
Successtest-method testStoredDataForGetRequestWithErrorResponse()
Successtest-method testStoredDataForGetRequestWithImageResponse()
Successtest-method testStoredDataForGetRequestWithJSONResponse()
Successtest-method testStoredDataForPostRequest()

ErrorProcessorTests back

SuccessFailureSkippedExpected Failure⏱️
6 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method test_apiManager_request_errorShouldBeMappedToSimpleError()
Successtest-method test_apiManager_request_originalErrorShouldRemain()
Successtest-method test_errorProcessing_process_mappingUnacceptableToSimpleErrorShouldSucceed()
Successtest-method test_errorProcessing_process_mappingUnacceptableToUnrelatedThroughSimpleShouldSucceed()
Successtest-method test_errorProcessing_process_noProcessorsShouldReturnOriginalError()
Successtest-method test_errorProcessing_process_undefinedCaseShouldReturnOriginalError()

MockResponseProviderTests back

SuccessFailureSkippedExpected Failure⏱️
3 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method testLoadingData()
Successtest-method testUnableToConstructResponseError()
Successtest-method testUnableToLoadAssetError()

MultipartFormDataEncoderTests back

SuccessFailureSkippedExpected Failure⏱️
4 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method test_encode_encodesDataAsExpected()
Successtest-method test_encode_encodesToFileAsExpected()
Successtest-method test_encode_throwsFileAlreadyExists()
Successtest-method test_encode_throwsInvalidFileUrl()

StatusCodeProcessorTests back

SuccessFailureSkippedExpected Failure⏱️
4 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method testEmptyAcceptableStatuses()
Successtest-method testNotHttpsURLResponse()
Successtest-method testUnacceptableStatus1()
Successtest-method testUnacceptableStatus2()