[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org 9ed2821053 7/8: test-ob-shell.el: Organize tests
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org 9ed2821053 7/8: test-ob-shell.el: Organize tests |
Date: |
Wed, 11 Jan 2023 11:58:07 -0500 (EST) |
branch: externals/org
commit 9ed2821053cf7b0c2f02fe941a54e1d3a9837aeb
Author: Matt Trzcinski <matt@excalamus.com>
Commit: Matt 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 (07c63df9c7 -> 4f319088ba), ELPA Syncer, 2023/01/11
- [elpa] externals/org 4f319088ba 8/8: Merge branch 'ob-shell-cleanup-tests', ELPA Syncer, 2023/01/11
- [elpa] externals/org e204c3a6cc 1/8: test-ob-shell.el: Split test-ob-shell/dont-error-on-empty-results, ELPA Syncer, 2023/01/11
- [elpa] externals/org 6e0012867d 2/8: test-ob-shell.el: Refactor test-ob-shell/session, ELPA Syncer, 2023/01/11
- [elpa] externals/org 9485450222 6/8: ob-shell-test.org: Remove ob-shell-test.org, ELPA Syncer, 2023/01/11
- [elpa] externals/org 2a0f5a5153 4/8: Refactor ob-shell/bash-uses-assoc-arrays, ELPA Syncer, 2023/01/11
- [elpa] externals/org 9ed2821053 7/8: test-ob-shell.el: Organize tests,
ELPA Syncer <=
- [elpa] externals/org 728e7fca81 3/8: test-ob-shell.el: Refactor ob-shell/generic-uses-no-assoc-arrays, ELPA Syncer, 2023/01/11
- [elpa] externals/org 3dbc7849a3 5/8: test-ob-shell.el: Refactor test names and kill test buffers, ELPA Syncer, 2023/01/11