diff --git a/manual_fix_steps.txt b/manual_fix_steps.txt new file mode 100644 index 0000000..3e8a998 --- /dev/null +++ b/manual_fix_steps.txt @@ -0,0 +1,25 @@ +# 工具容器中手动创建test_groups.json的详细步骤 + +1. 打开工具提供的容器终端 + +2. 进入autograde目录 +```bash +cd /workspace/liyitian/231106111-lyt/autograde/ +``` + +3. 创建test_groups.json文件 +```bash +echo '{"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}}}}' > test_groups.json +``` + +4. 验证文件内容 +```bash +cat test_groups.json +``` + +5. 确保文件权限正确 +```bash +chmod 644 test_groups.json +``` + +6. 回到工具页面,重新运行「Grade programming tests」 \ No newline at end of file