Groovy-Emacs-Modes / groovy-emacs-modes

A groovy major mode, grails minor mode, and a groovy inferior mode.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tests failing

russel opened this issue · comments

Even though all the tests pass of Travis-CI, when I run the command to run the tests on Fedora Rawhide, I get:

|> cask exec ert-runner 
......Test test-for-issue-56 backtrace:

  (if (unwind-protect (setq value-62 (apply fn-60 args-61)) (setq form
  (let (form-description-64) (if (unwind-protect (setq value-62 (apply
  (let ((value-62 (quote ert-form-evaluation-aborted-63))) (let (form-
  (let ((fn-60 (function equal)) (args-61 (list (buffer-string) "class
  (let ((text "class foo {\ndef bar() {\ndef a = 1\ndef b = a +\n1\nde
  (progn (let ((text "class foo {\ndef bar() {\ndef a = 1\ndef b = a +
  (unwind-protect (progn (let ((text "class foo {\ndef bar() {\ndef a 
  (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn
  (let ((temp-buffer (generate-new-buffer " *temp*"))) (save-current-b
  (lambda nil (let ((temp-buffer (generate-new-buffer " *temp*"))) (sa
  ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc
  ert-run-test([cl-struct-ert-test test-for-issue-56 nil (lambda nil (
  ert-run-or-rerun-test([cl-struct-ert--stats (and t) [[cl-struct-ert-
  ert-run-tests((and t) (lambda (event-type &rest event-args) (cond ((
  ert-runner/run-tests-batch((and t))
  (let ((stats (ert-runner/run-tests-batch selector))) (kill-emacs (if
  ert-runner/run-tests-batch-and-exit((and t))
  (if ert-runner-verbose (ert-runner/run-tests-batch-and-exit ert-runn
  (let ((test-files (ert-runner--test-files tests)) (test-helper (f-ex
  ert-runner/run()
  apply(ert-runner/run nil)
  commander--handle-command(nil)
  commander-parse(nil)
  (if commander-parsing-done nil (commander-parse (or commander-args (
  eval-buffer(#<buffer  *load*> nil "/home/users/russel/Repositories/G
  load-with-code-conversion("/home/users/russel/Repositories/Git/Forks
  load("/home/users/russel/Repositories/Git/Forks/Groovy-Emacs-Modes/.
  command-line-1(("-scriptload" "/home/users/russel/Repositories/Git/F
  command-line()
  normal-top-level()

Test test-for-issue-56 condition:

    (ert-test-failed
     ((should
       (equal
	(buffer-string)
	"class foo {
    def bar() {
        def a = 1
        def b = a +
            1
        def c =
            1
        def d = a
            .baz()
    }
}
"))
      :form
      (equal "class foo {
    def bar() {
	def a = 1
	def b = a +
	    1
	def c =
	    1
	def d = a
	    .baz()
    }
}
" "class foo {
    def bar() {
        def a = 1
        def b = a +
            1
        def c =
            1
        def d = a
            .baz()
    }
}
")
      :value nil :explanation
      (arrays-of-different-length 106 155 "class foo {
    def bar() {
	def a = 1
	def b = a +
	    1
	def c =
	    1
	def d = a
	    .baz()
    }
}
" "class foo {
    def bar() {
        def a = 1
        def b = a +
            1
        def c =
            1
        def d = a
            .baz()
    }
}
" first-mismatch-at 28)))

F..

Ran 9 tests in 0.027 seconds
1 unexpected results:
   FAILED  test-for-issue-56

There's no test called test-for-issue-56 on master. Are you on the right branch?

Right branch, wrong brain cells. This is a test I have for Issue 56 for which I thought I had done a pull request. Let me put the pull request in so we are in the state I thought I was. I'll create a new branch for this so as not to confuse issues further.

Closing as discussed on #67. Let me know if I've missed anything.