ionrock / pytest-el

Run py.test on testing functions, classes, modules and entire suites in Emacs.
54 stars 26 forks source link

pytest-one fails #14

Closed TheBB closed 8 years ago

TheBB commented 8 years ago

Maybe I'm misunderstanding the purpose of pytest-one, but placing point on a test and running it, I'm getting an error about a nonexistent file.

Debugger entered--Lisp error: (error "'/home/efonn/repos/Splipy/splipy/volume_test.py::TestVolume::test_evaluate' is not an extant file.")
  signal(error ("'/home/efonn/repos/Splipy/splipy/volume_test.py::TestVolume::test_evaluate' is not an extant file."))
  error("'/home/efonn/repos/Splipy/splipy/volume_test.py::TestVolume::test_evaluate' is not an extant file.")
  pytest-check-test-file("/home/efonn/repos/Splipy/splipy/volume_test.py::TestVolume::test_evaluate")
  mapc(pytest-check-test-file ("/home/efonn/repos/Splipy/splipy/volume_test.py::TestVolume::test_evaluate"))
  (let* ((pytest (pytest-find-test-runner)) (where (if tests (let ((testpath (if ... ... tests))) (pytest-find-project-root (file-name-directory testpath))) (pytest-find-project-root))) (tests (cond ((not tests) "") ((listp tests) tests) ((stringp tests) (split-string tests)))) (_ (mapc (quote pytest-check-test-file) tests)) (tnames (mapconcat (apply-partially (quote format) "'%s'") tests " ")) (cmd-flags (if flags flags pytest-cmd-flags)) (use-comint (s-contains\? "pdb" cmd-flags))) (message "%S" (pytest-cmd-format pytest-cmd-format-string where pytest cmd-flags tnames)) (funcall (function (lambda (command) (compilation-start command use-comint (function (lambda (mode) (concat "*pytest*")))))) (pytest-cmd-format pytest-cmd-format-string where pytest cmd-flags tnames)) (if use-comint (save-current-buffer (set-buffer (get-buffer "*pytest*")) (inferior-python-mode))))
  pytest-run("/home/efonn/repos/Splipy/splipy/volume_test.py::TestVolume::test_evaluate" nil)
  pytest-one()
  call-interactively(pytest-one nil nil)
  command-execute(pytest-one)
TheBB commented 8 years ago

Duplicate #13.

ethanluoyc commented 8 years ago

13 encounters the same issue