Augie Fackler avatar Augie Fackler committed 2e70d0b

Remove some debug code and name the non-pdb buffer "*nosetests*" instead of "*compilation*"

Comments (0)

Files changed (1)

 (defun run-nose (&optional tests debug)
   "run nosetests"
-  (interactive)
   (let* ((nose (nose-find-test-runner))
          (where (expand-file-name "../.." (file-name-directory nose)))
          (args (if debug "--pdb" ""))
          (tnames (if tests tests "")))
-    (print nose)
-    (print args)
-    (print tnames)
-    (funcall (if debug 'pdb 'compile)
+    (funcall (if debug 'pdb '(lambda (command)
+                               (compilation-start command
+                                                  nil
+                                                  (lambda (mode) (concat "*nosetests*")))))
              (format "%s -v %s -w %s -c %s/setup.cfg %s"
                      (nose-find-test-runner) args where where tnames)))
   (nosetests-one t))
 (defun nose-find-test-runner ()
-  (interactive)
    (let ((result (reduce '(lambda (x y) (or x y))
                          (mapcar 'nose-find-test-runner-names nose-project-names))))
 (defun nose-py-testable ()
-  (interactive)
   (let ((remember-point (point)))
      "^ \\{0,4\\}\\(class\\|def\\)[ \t]+\\([a-zA-Z0-9_]+\\)" nil t)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.