emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] duplicated test names... are these bugs?


From: Stig Brautaset
Subject: [O] duplicated test names... are these bugs?
Date: Thu, 07 Sep 2017 23:30:38 +0100
User-agent: mu4e 0.9.19; emacs 26.0.50

Hello!

Running tests on master for me, with make test, results in a single test
failure in `ob-shell/bash-uses-assoc-arrays'. While looking into that I
found that there are _two_ definitions of that in the test-ob-shell.el
file. This strikes me as unlikely to be ideal, and I decided to look a
bit further and it turns out this is not unique. Running the following
command from the top-level org-mode directory

: $ ag --nogroup --nonumbers ert-deftest  | sort | uniq -d

Results in

: testing/lisp/test-ob-lilypond.el:(ert-deftest ob-lilypond/ly-gen-html ()
: testing/lisp/test-ob-shell.el:(ert-deftest ob-shell/bash-uses-assoc-arrays ()
: testing/lisp/test-ob-shell.el:(ert-deftest 
ob-shell/generic-uses-no-assoc-arrays ()
: testing/lisp/test-ob.el:(ert-deftest 
test-ob/commented-last-block-line-with-var ()
: testing/lisp/test-ob.el:(ert-deftest 
test-ob/org-babel-remove-result--results-default ()
: testing/lisp/test-ob.el:(ert-deftest 
test-ob/org-babel-remove-result--results-list ()
: testing/lisp/test-ob.el:(ert-deftest 
test-ob/org-babel-remove-result--results-pp ()
: testing/lisp/test-org-table.el:(ert-deftest test-org-table/align ()

I'm not super familiar with ert, but I _assume_ that this will lead to
only the last definition of the test with the duplicate names being run
by 'make test'?

Stig


--
; GNU Emacs 26.0.50, Org mode version 9.1



reply via email to

[Prev in Thread] Current Thread [Next in Thread]