-
Notifications
You must be signed in to change notification settings - Fork 0
test: in-source testingをplenary.nvimのbustedに置き換える #79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: aiya000 <4897842+aiya000@users.noreply.github.com>
Co-authored-by: aiya000 <4897842+aiya000@users.noreply.github.com>
Co-authored-by: aiya000 <4897842+aiya000@users.noreply.github.com>
|
@copilot |
|
@copilot |
Co-authored-by: aiya000 <4897842+aiya000@users.noreply.github.com>
削除しました。以下の3ファイルの末尾に残っていた
コミット: [fix: ファイル末尾の残りのin-source testingコメントを削除] |
|
@copilot |
Co-authored-by: aiya000 <4897842+aiya000@users.noreply.github.com>
変更しました。コードベースの他の箇所と同じように コミット: cf47c63 |
|
@copilot |
|
@copilot |
Co-authored-by: aiya000 <4897842+aiya000@users.noreply.github.com>
utils.testモジュールを削除し、関数をutils.listとutils.functionsに移動しました。
コミット: (processing)
neosnippetの変更を元に戻しました。 コミット: (processing) |
この環境ではNeovimが利用できないため、実際にテストを実行することはできません。 ただし、以下を確認しました:
テストを実行するには、ローカル環境で以下のコマンドを実行してください: cd ~/.config/nvim
nvim --headless -c "PlenaryBustedDirectory tests/ { minimal_init = 'tests/minimal_init.lua' }" -c "qa"または: cd ~/.config/nvim
./run_tests.sh |
dd42220 to
17e6373
Compare
Functionsからfnに変更完了した作業
移行されたモジュール(4ファイル)
lua/utils/list.lua→tests/utils/list_spec.lualua/utils/functions.lua→tests/utils/functions_spec.lualua/utils/functions/s.lua→tests/utils/functions/s_spec.lualua/utils/pipe.lua→tests/utils/pipe_spec.luaリファクタリング
lua/utils/test.luaを削除し、以下のように関数を移動:reduce,concat_array_including_nil,to_element_string,make_array_to_string,is_array→utils/list.luaに直接実装deep_equal→utils/functions.luaに直接実装すべてのin-source testing (
if vim == nil then)ブロックとコメントを削除し、plenary.nvimのbustedテストフレームワークに完全移行しました。コードベースの命名規則に従い、utils.functionsはfnとして代入しています。utils.testモジュールは不要になったため削除し、その関数群は実際に使用されているutils.listとutils.functionsに直接実装しました。
Fixes #60
Original prompt
Fixes #60
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.