[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/geiser-stklos be482a0 30/30: Fix tests and describe them i
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/geiser-stklos be482a0 30/30: Fix tests and describe them in README |
Date: |
Sun, 1 Aug 2021 18:32:46 -0400 (EDT) |
branch: elpa/geiser-stklos
commit be482a03225720d7adb003c28e4515f6252e7ce2
Author: Jeronimo Pellegrini <j_p@aleph0.info>
Commit: Jeronimo Pellegrini <j_p@aleph0.info>
Fix tests and describe them in README
---
README.md | 24 +++++++++++++++++++++++-
geiser-stklos-test.el | 42 ++++++++++++++++++++++++++----------------
2 files changed, 49 insertions(+), 17 deletions(-)
diff --git a/README.md b/README.md
index fdf991e..a0ec235 100644
--- a/README.md
+++ b/README.md
@@ -26,11 +26,16 @@ See the Geiser manual for usage.
# Installation
+## From MELPA
+
Geiser-STklos is available on MELPA, so `M-x install-package` followed by
`geiser-stklos`
should get it installed, and this is the recommended method.
+## From source
+
There are other ways to install Geiser and Geiser-STklos. One possibility is
-to add this to your Emacs configuration:
+to add this to your Emacs configuration (Guile is used here as an example
+of another supported implementation, used along with Geiser-STklos):
```
(setq-default geiser-active-implementations
@@ -47,6 +52,23 @@ to add this to your Emacs configuration:
(require 'geiser-stklos)
```
+### Testing
+
+Geiser-STklos comes with two test suites -- one for the Emacs Lisp part of
+the system (using `ert`), and one for the STklos part (using STklos' own test
+system). To run both suites:
+
+```
+make test
+```
+
+The STklos tests will create a log file called `TEST.LOG`. The Emacs Lisp tests
+will write to `test-emacs-stdout.log`, but only when errors occur.
+
+The tests are very rudimentary because writing a full test suite for the Emacs
+Lisp part would be a bit complex, although not impossible: we'd need to start
+STklos, load geiser on it, and feed it some forms before starting the tests.
+
# Bugs
See the issue tracker in Gitlab.
diff --git a/geiser-stklos-test.el b/geiser-stklos-test.el
index bfb435d..6ad4f37 100644
--- a/geiser-stklos-test.el
+++ b/geiser-stklos-test.el
@@ -10,25 +10,35 @@
(ert-deftest geiser-stklos--loaded ()
(should (member 'geiser-stklos features)))
+;; Go to char in position 7 and find the closing parenthesis
+;; of the form -- which is in position 29
(ert-deftest find-close-par ()
- 29
- (with-temp-buffer
- (insert "(let* ((let 'let) (let* let)) let)")
- (goto-char 7)
- (geiser-stklos--find-close-par)))
-
+ (should (= 30
+ (with-temp-buffer
+ (insert "(let* ((let 'let) (let* let)) let)")
+ (goto-char 7)
+ (geiser-stklos--find-close-par)))))
+
+;; Go to char in position 10 and find the closing parenthesis
+;; of the form -- which is in position 18
(ert-deftest find-close-par-2 ()
- 18
- (with-temp-buffer
- (insert "(let* ((let 'let) (let* let)) let)")
- (goto-char 10)
- (geiser-stklos--find-close-par 8)))
+ (should (= 18
+ (with-temp-buffer
+ (insert "(let* ((let 'let) (let* let)) let)")
+ (goto-char 10)
+ (geiser-stklos--find-close-par 8)))))
+
;; this one could have many more variants
+;; Go to char in position 7 and find the beginning of the symbol
+;; -- which is in position 6
(ert-deftest geiser-stklos--symbol-begin ()
- 5
- (with-temp-buffer
- (insert "(abc def (ghijkl))")
- (goto-char 7)
- (geiser-stklos--symbol-begin nil)))
+ (should (= 6
+ (with-temp-buffer
+ (insert "(abc def (ghijkl))")
+ (goto-char 7)
+ (geiser-stklos--symbol-begin nil)))))
+
+
+
- [nongnu] elpa/geiser-stklos b806d13 17/30: Merge branch 'master' of gitlab.com:emacs-geiser/stklos, (continued)
- [nongnu] elpa/geiser-stklos b806d13 17/30: Merge branch 'master' of gitlab.com:emacs-geiser/stklos, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-stklos 330330a 15/30: Add tests on both (STklos and Emacs) sides., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-stklos 66eae79 22/30: Fix docstrings as per checkdoc advice, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-stklos 439adec 29/30: Small enhancements to documentation, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-stklos 5ab06e9 11/30: Add autodoc and symbol documentation support, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-stklos 091aa5e 07/30: A very small quantity of tests..., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-stklos ced9c9f 05/30: Fixing a typo in a URL, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-stklos 6228b23 21/30: Corectly require Geiser core, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-stklos a02d2a7 13/30: Merge branch 'master' of gitlab.com:emacs-geiser/stklos into master, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-stklos 52acf7c 24/30: Fix fatal thinko (docstring / const value mixup), Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-stklos be482a0 30/30: Fix tests and describe them in README,
Philip Kaludercic <=
- [nongnu] elpa/geiser-stklos eb2b13f 02/30: Geiser functions are now in a STklos module, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-stklos 2fe100a 12/30: Update README, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-stklos 2733115 18/30: Add missing end marker in .el file, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-stklos 033b585 16/30: Fix headers for inclusion in MELPA, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-stklos d4aa8df 19/30: Some changes to headers, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-stklos 47cbf16 26/30: Fixing docstrings and style issues, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-stklos 0e3a057 28/30: Enhance documentation in Commentary section, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-stklos fc33f45 01/30: Initial Commit, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-stklos 38dba89 09/30: Minimum version of STklos supported is 1.50, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-stklos 1f2a6e6 08/30: Update README.md - mention autodoc issue, Philip Kaludercic, 2021/08/01