From ca19008b866f3fbbcfda169d65f17c97f9361d2b Mon Sep 17 00:00:00 2001 From: liyitian <2717355959@qq.com> Date: Sun, 14 Dec 2025 18:41:33 +0800 Subject: [PATCH] Add test_groups.json configuration file --- autograde/test_groups.json | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 autograde/test_groups.json diff --git a/autograde/test_groups.json b/autograde/test_groups.json new file mode 100644 index 0000000..4a5732f --- /dev/null +++ b/autograde/test_groups.json @@ -0,0 +1,32 @@ +{ + "test_groups": { + "基础功能测试": { + "weight": 60, + "tests": { + "user_shouldBeCreatedCorrectly": 5, + "user_shouldSupportCustomRole": 5, + "playlist_shouldBeCreatedCorrectly": 5, + "song_shouldBeCreatedCorrectly": 5, + "playlistDTO_shouldStoreDataCorrectly": 5, + "playlist_addSong_shouldAddSongToPlaylist": 10, + "playlist_removeSong_shouldRemoveSongFromPlaylist": 10, + "getAllPlaylists_shouldReturnAllPlaylists": 5, + "getPlaylistById_shouldReturnCorrectPlaylist": 5, + "createPlaylist_shouldCreateNewPlaylist": 5 + } + }, + "权限功能测试": { + "weight": 40, + "tests": { + "testOwnerCanModifyPlaylist": 8, + "testNonOwnerCannotModifyPlaylist": 8, + "testAdminCanModifyAnyPlaylist": 8, + "testDeletePlaylist_OwnerCanDelete": 5, + "testDeletePlaylist_NonOwnerCannotDelete": 5, + "testDeletePlaylist_AdminCanDelete": 6, + "testDeletePlaylist_PermissionCheck": 6, + "testAddSong_PermissionCheck": 6 + } + } + } +} \ No newline at end of file