2311061111-lyt/manual_fix_steps.txt
liyitian 61fa5ac842
All checks were successful
autograde-final-vibevault / check-trigger (push) Successful in 11s
autograde-final-vibevault / grade (push) Successful in 3m43s
完成作业
2025-12-14 19:38:02 +08:00

25 lines
1.3 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 工具容器中手动创建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」