chore: remove redundant export-only tests, add test audit procedure
Deleted chat_editor_test.exs and import_editor_test.exs which only checked function_exported?/Code.ensure_loaded? without exercising any behavior — both components are already tested via LiveView rendering in shell_live_test.exs and import_shell_live_test.exs respectively. Added TESTAUDIT.md documenting the procedure for periodic test suite audits to catch non-behavioral tests. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
defmodule BDS.Desktop.ShellLive.ChatEditorTest do
|
||||
use ExUnit.Case, async: false
|
||||
|
||||
test "ChatEditor exports LiveComponent callbacks" do
|
||||
assert function_exported?(BDS.Desktop.ShellLive.ChatEditor, :update, 2)
|
||||
assert function_exported?(BDS.Desktop.ShellLive.ChatEditor, :handle_event, 3)
|
||||
assert function_exported?(BDS.Desktop.ShellLive.ChatEditor, :render, 1)
|
||||
end
|
||||
end
|
||||
@@ -1,11 +0,0 @@
|
||||
defmodule BDS.Desktop.ShellLive.ImportEditorTest do
|
||||
use ExUnit.Case, async: false
|
||||
|
||||
test "ImportEditor exports LiveComponent callbacks" do
|
||||
module = BDS.Desktop.ShellLive.ImportEditor
|
||||
assert Code.ensure_loaded?(module)
|
||||
assert function_exported?(module, :update, 2)
|
||||
assert function_exported?(module, :handle_event, 3)
|
||||
assert function_exported?(module, :render, 1)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user