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