Added tests reporter (#382) #2
GitHub Actions / Test Report
succeeded
Nov 2, 2024 in 0s
46 passed, 0 failed and 0 skipped
✅ tests.json
46 tests were completed in 11s with 46 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
/home/runner/work/sizzle_starter/sizzle_starter/test/.test_optimizer.dart | 46✅ | 236ms |
✅ /home/runner/work/sizzle_starter/sizzle_starter/test/.test_optimizer.dart
src/core/rest_client/rest_client_http_test.dart RestClientHttp
✅ returns normally
✅ adds body if it's not null
✅ adds headers
✅ throws RestClientException on error
src/core/utils/retry_request_mixin_test.dart Retry request mixin
✅ retries base request
✅ retries multipart request
✅ throws on unsupported / not provided request
src/core/rest_client/rest_client_base_test.dart RestClientBase
✅ encodeBodyWithValidMap
✅ encodeBodyWithEmptyMap
✅ encodeBodyWithInvalidMap
✅ encodeBodyWithNestedMap
✅ encodeBodyWithNestedLists
✅ decodeResponseWithNullBody
✅ decodeResponseWithEmptyBody
✅ decodeResponseWithMapBody
✅ decodeResponseWithStringBody
✅ decodeResponseWithEmptyStringBody
✅ decodeResponseWithInvalidJsonBody
✅ decodeResponseWithInvalidJson
✅ decodeResponseWithErrorInResponseBody
✅ decodeResponseWithDataInResponseBody
✅ buildUriWithValidPathAndQueryParams
✅ buildUriWithEmptyPath
✅ buildUriWithSpecialCharactersInPath
✅ buildUriWithEndingSlashInBaseUrl
✅ buildUriWithPathWithoutSlash
✅ getReturns
✅ postReturns
✅ putReturns
✅ deleteReturns
✅ patchReturns
✅ sendReturns
src/core/rest_client/auth_interceptor_test.dart Auth Interceptor
✅ should reject request if token is null
✅ should add authorization header if access token is valid
✅ should clear token and reject response on RevokeTokenException
✅ should reject request if error happens during refresh
✅ should refresh token if access token is invalid but refresh token is valid
✅ should reject request if both access and refresh tokens are invalid
✅ should resolve response if status code is not 401
✅ if response doesnt have token in request, resolve response
✅ should clear tokens and reject response on RevokeTokenException in interceptResponse
✅ should reject response if error happens during refresh
✅ should reject response if status code is 401 and token is null
✅ should refresh token and retry request if status code is 401 and token is valid
src/core/utils/firebase_analytics_reporter_test.dart FirebaseAnalyticsReporter
✅ logEvent logs event to Firebase Analytics
✅ logEvent logs event with parameters
Loading