完成作业
All checks were successful
autograde-final-vibevault / check-trigger (push) Successful in 11s
autograde-final-vibevault / grade (push) Successful in 3m43s

This commit is contained in:
liyitian 2025-12-14 19:38:02 +08:00
parent 3b69599ab1
commit 61fa5ac842

25
manual_fix_steps.txt Normal file
View File

@ -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」