Skip to content

#1022 - Apply Automation test for Yas project #334

#1022 - Apply Automation test for Yas project

#1022 - Apply Automation test for Yas project #334

GitHub Actions / Cart-Service-Unit-Test-Results succeeded Sep 17, 2024 in 0s

30 passed, 0 failed and 0 skipped

Tests passed successfully

Report Passed Failed Skipped Time
cart/target/failsafe-reports/TEST-com.yas.cart.service.CartServiceIT.xml 16✅ 32s
cart/target/failsafe-reports/TEST-com.yas.cart.service.ProductServiceIT.xml 1✅ 25s
cart/target/surefire-reports/TEST-com.yas.cart.controller.CartControllerTest.xml 12✅ 7s
cart/target/surefire-reports/TEST-com.yas.cart.service.ProductServiceTest.xml 1✅ 364ms

✅ cart/target/failsafe-reports/TEST-com.yas.cart.service.CartServiceIT.xml

16 tests were completed in 32s with 16 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.yas.cart.service.CartServiceIT 16✅ 32s

✅ com.yas.cart.service.CartServiceIT

✅ getLastCart_ExistingCarts_ReturnsLatestCart
✅ getCarts_ExistInDatabase_Success
✅ getCartDetailByCustomerId_ExistingCustomer_Success
✅ removeCartItemListByProductIdList_NotMatchProductId_ThrowNotFoundException
✅ updateCartItems_QuantityZero_DeletesItem
✅ removeCartItemListByProductIdList_NoCartItems_ThrowBadRequestException
✅ addToCart_ProductsExist_AddsItemsToNewCart
✅ countNumberItemInCart_EmptyCart_ReturnsZero
✅ getLastCart_NoCarts_ReturnsEmptyCart
✅ addToCart_SomeProductsDoNotExist_ThrowsNotFoundException
✅ countNumberItemInCart_NoCart_ReturnsZero
✅ addToCart_ProductsExist_AddsItemsToExistingCart
✅ removeCartItemListByProductIdList_SomeProductsExist_RemovesThem
✅ countNumberItemInCart_NonEmptyCart_ReturnsCorrectCount
✅ removeCartItemByProductId_ProductExists_RemovesItem
✅ updateCartItems_ProductExists_UpdatesQuantity

✅ cart/target/failsafe-reports/TEST-com.yas.cart.service.ProductServiceIT.xml

1 tests were completed in 25s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.yas.cart.service.ProductServiceIT 1✅ 25s

✅ com.yas.cart.service.ProductServiceIT

✅ test_getProducts_shouldThrowCallNotPermittedException_whenCircuitBreakerIsOpen

✅ cart/target/surefire-reports/TEST-com.yas.cart.controller.CartControllerTest.xml

12 tests were completed in 7s with 12 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.yas.cart.controller.CartControllerTest 12✅ 7s

✅ com.yas.cart.controller.CartControllerTest

✅ testRemoveCartItemSuccess
✅ testListCartDetailByCustomerId
✅ testCreateCartNotFound
✅ testGetNumberItemInCartWhenNoItems
✅ testCreateCartSuccess
✅ testListCarts
✅ testRemoveCartItemListSuccess
✅ testGetNumberItemInCartSuccess
✅ testCreateCartBadRequest
✅ testGetLastCartWithNoPrincipal
✅ testUpdateCartSuccess
✅ testGetLastCartWithPrincipal

✅ cart/target/surefire-reports/TEST-com.yas.cart.service.ProductServiceTest.xml

1 tests were completed in 364ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.yas.cart.service.ProductServiceTest 1✅ 364ms

✅ com.yas.cart.service.ProductServiceTest

✅ getProducts_NormalCase_ReturnProductThumbnailVms