[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org bcca8819c3 8/8: test-ob-shell.el: Organize tests
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org bcca8819c3 8/8: test-ob-shell.el: Organize tests |
Date: |
Wed, 11 Jan 2023 14:58:00 -0500 (EST) |
branch: externals/org
commit bcca8819c3c7184d744a41d6cb899fc3f77c46c3
Author: Matt Trzcinski <matt@excalamus.com>
Commit: Matthew Trzcinski <matt@excalamus.com>
test-ob-shell.el: Organize tests
* testing/lisp/test-ob-shell.el:
- Give instructions on how to run tests
- Require `org-test' explicitly
- Group tests into sections
- Insert `page-delimiter's between sections
---
testing/lisp/test-ob-shell.el | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/testing/lisp/test-ob-shell.el b/testing/lisp/test-ob-shell.el
index 3ee81d6b86..5318425e60 100644
--- a/testing/lisp/test-ob-shell.el
+++ b/testing/lisp/test-ob-shell.el
@@ -18,17 +18,22 @@
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <https://www.gnu.org/licenses/>.
-
+
;;; Comment:
+;; See testing/README for how to run tests.
+
+
;;; Requirements:
-(org-test-for-executable "sh")
(require 'ob-core)
(unless (featurep 'ob-shell)
(signal 'missing-test-dependency "Support for Shell code blocks"))
+(org-test-for-executable "sh")
+
+
;;; Code:
(ert-deftest test-ob-shell/dont-insert-spaces-on-expanded-bodies ()
"Expanded shell bodies should not start with a blank line unless
@@ -277,6 +282,7 @@ echo 3
"- 1\n- 2\n- 3\n"
(buffer-substring-no-properties (point) (point-max))))))
+
;;; Standard output
(ert-deftest test-ob-shell/standard-output-after-success ()
@@ -293,6 +299,7 @@ echo 3
"echo 1; exit 2" nil)))
(kill-buffer "*Org-Babel Error Output*")))
+
;;; Standard error
(ert-deftest test-ob-shell/error-output-after-success ()
@@ -341,6 +348,7 @@ buffer, alongside multiple exit codes."
(buffer-string)))))
(kill-buffer "*Org-Babel Error Output*")))
+
;;; Exit codes
(ert-deftest test-ob-shell/exit-code ()
- [elpa] externals/org updated (4f319088ba -> bcca8819c3), ELPA Syncer, 2023/01/11
- [elpa] externals/org 875845de1b 2/8: test-ob-shell.el: Split test-ob-shell/dont-error-on-empty-results, ELPA Syncer, 2023/01/11
- [elpa] externals/org 16ea9f84f6 5/8: Refactor ob-shell/bash-uses-assoc-arrays, ELPA Syncer, 2023/01/11
- [elpa] externals/org 597ecaa5c1 1/8: Revert "Merge branch 'ob-shell-cleanup-tests'", ELPA Syncer, 2023/01/11
- [elpa] externals/org c61112c850 4/8: test-ob-shell.el: Refactor ob-shell/generic-uses-no-assoc-arrays, ELPA Syncer, 2023/01/11
- [elpa] externals/org ccd5977f62 7/8: ob-shell-test.org: Remove ob-shell-test.org, ELPA Syncer, 2023/01/11
- [elpa] externals/org bcca8819c3 8/8: test-ob-shell.el: Organize tests,
ELPA Syncer <=
- [elpa] externals/org d7ff5b2462 6/8: test-ob-shell.el: Refactor test names and kill test buffers, ELPA Syncer, 2023/01/11
- [elpa] externals/org 2ddbee5e63 3/8: test-ob-shell.el: Refactor test-ob-shell/session, ELPA Syncer, 2023/01/11