[ 
https://issues.apache.org/jira/browse/ATLAS-5179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18080869#comment-18080869
 ] 

ASF subversion and git services commented on ATLAS-5179:
--------------------------------------------------------

Commit 149406c964b8ab68fe220b91c81d8bce9e6b6715 in atlas's branch 
refs/heads/ATLAS-5179 from Prasad Pawar
[ https://gitbox.apache.org/repos/asf?p=atlas.git;h=149406c96 ]

ATLAS-5179, ATLAS-5180: Add unit tests for API layer, utils, and Redux


> Implement Unit Tests for Redux Slices
> -------------------------------------
>
>                 Key: ATLAS-5179
>                 URL: https://issues.apache.org/jira/browse/ATLAS-5179
>             Project: Atlas
>          Issue Type: Sub-task
>          Components: atlas-webui
>            Reporter: Prasad P. Pawar
>            Assignee: Prasad P. Pawar
>            Priority: Major
>              Labels: atlas-react-test-case
>
> Objective
> Implement unit tests for all Redux slices to ensure state management, 
> actions, and reducers work correctly.
> Slices Already Completed
>  - ✅ detailPageSlice
>  - ✅ glossarySlice
>  - ✅ sessionSlice
>  - ✅ typedefEntitySlice
> Slices Remaining (11+ files)
> 1. entitySlice (or similar)
> 2. searchSlice
> 3. filterSlice
> 4. userSlice
> 5. authSlice
> 6. Other slices as identified
> Test Coverage Required
>  - Initial state
>  - Action creators
>  - Reducers (pending, fulfilled, rejected states)
>  - Async thunks
>  - State updates
> Acceptance Criteria
>  - ✅ All Redux slices have test files
>  - ✅ Each slice has at least 6+ test cases
>  - ✅ Tests cover initial state, actions, and reducers
>  - ✅ Tests cover async thunks (pending, fulfilled, rejected)
>  - ✅ All tests pass successfully
>  - ✅ Code coverage for Redux slices is 85%+
> Test Files Pattern
>  - `src/redux/slice/_{_}tests{_}_/[sliceName]Slice.test.ts`
> Estimated Test Cases
>  - Total: ~66+ test cases (6 per slice)
> Dependencies
>  - Redux Toolkit
>  - Mock store setup
>  - Test utilities for Redux testing



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to