imports
This commit is contained in:
@@ -54,5 +54,17 @@
|
||||
(let ((result (ob-elixir--execute "undefined_function()" 'value)))
|
||||
(should (string-match-p "\\(UndefinedFunctionError\\|CompileError\\)" result)))))
|
||||
|
||||
(ert-deftest ob-elixir-test-error-appears-in-result ()
|
||||
"Test that errors appear in result even when signaling is enabled."
|
||||
(skip-unless (executable-find ob-elixir-command))
|
||||
(let ((ob-elixir-signal-errors t))
|
||||
;; Execute via the main entry point (not ob-elixir--execute directly)
|
||||
(let ((result (org-babel-execute:elixir "raise \"test error\""
|
||||
'((:result-type . value)
|
||||
(:result-params . ("replace"))))))
|
||||
;; Result should contain the error, not be nil/empty
|
||||
(should result)
|
||||
(should (string-match-p "RuntimeError" result)))))
|
||||
|
||||
(provide 'test-ob-elixir-errors)
|
||||
;;; test-ob-elixir-errors.el ends here
|
||||
|
||||
Reference in New Issue
Block a user