[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/haskell-tng-mode 50b53d3 114/385: tng compilation tests
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/haskell-tng-mode 50b53d3 114/385: tng compilation tests |
Date: |
Tue, 5 Oct 2021 23:59:12 -0400 (EDT) |
branch: elpa/haskell-tng-mode
commit 50b53d397dc28c64b0dce06eb1b9fc63249adb44
Author: Tseen She <ts33n.sh3@gmail.com>
Commit: Tseen She <ts33n.sh3@gmail.com>
tng compilation tests
---
Cask | 1 -
test/haskell-tng-compile-test.el | 23 ++++++++++-------------
2 files changed, 10 insertions(+), 14 deletions(-)
diff --git a/Cask b/Cask
index 7831baf..13a428a 100644
--- a/Cask
+++ b/Cask
@@ -26,7 +26,6 @@
(development
(depends-on "faceup")
- (depends-on "haskell-mode") ;; regression testing
(depends-on "ert-runner")
(depends-on "undercover"))
diff --git a/test/haskell-tng-compile-test.el b/test/haskell-tng-compile-test.el
index fe0e775..8f214cf 100644
--- a/test/haskell-tng-compile-test.el
+++ b/test/haskell-tng-compile-test.el
@@ -7,8 +7,6 @@
(require 'dash)
(require 'faceup)
-(require 'haskell-compile)
-
(require 'haskell-tng-mode)
(require 'haskell-tng-testutils
"test/haskell-tng-testutils.el")
@@ -16,38 +14,37 @@
(defun have-expected-errors (file)
(with-temp-buffer
(let ((output (current-buffer))
- ;; compilation-mode uses font-lock-face, not face
(faceup-default-property 'font-lock-face)
- ;; maybe add compilation-message ?
- ;; maybe add overlays ?
(faceup-properties '(font-lock-face)))
(compilation-start
(format "cat %s" file)
- 'haskell-compilation-mode
+ 'haskell-tng-compilation-mode
(lambda (_) output))
(while compilation-in-progress
(sit-for 0.01))
(haskell-tng-compile:clean-output)
- ;; (font-lock-fontify-region (point-min) (point-max))
- ;; (--dotimes (point-max)
- ;; (let ((p (+ 1 it)))
- ;; (message "POINT=%s PROPS=%S" p (text-properties-at p))))
-
(haskell-tng-testutils:assert-file-contents
file
output
#'buffer-to-faceup-string
"faceup"))))
+;; TODO locally scope this override to this test. Would also be good to
override
+;; abbreviate-file-name and current-time-string
+(defun compilation-handle-exit (_1 _2 _3)
+ "Overrides the default behaviour to remove noise")
+
(defun haskell-tng-compile:clean-output ()
"Removes timestamps and local file paths"
(let ((inhibit-read-only t))
(goto-char (point-min))
(kill-line 4)
- (goto-char (point-max))
- (kill-line -2)))
+ ;; not needed with the custom compilation-handle-exit
+ ;;(goto-char (point-max))
+ ;;(kill-line -2)
+ ))
;; to generate .faceup files, use faceup-view-buffer
(ert-deftest haskell-tng-compile-errors-file-tests ()
- [nongnu] elpa/haskell-tng-mode 907255e 026/385: some namespacing, (continued)
- [nongnu] elpa/haskell-tng-mode 907255e 026/385: some namespacing, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode e7eaa38 077/385: some ideas for cabal, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode ddd0706 108/385: suggest next line indentation, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 7a8f714 139/385: indent back to the same level of `do', ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode ac55d33 134/385: interactive SMIE debugging, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 6ade588 195/385: key bindings in compilation mode, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 144cabf 202/385: fix test assertions, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 04ebec6 204/385: third party integrations, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode aa9bbb7 216/385: add (broken) test coverage for consyms, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 5f423b9 100/385: some alts in the indentation test, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 50b53d3 114/385: tng compilation tests,
ELPA Syncer <=
- [nongnu] elpa/haskell-tng-mode 36ece6d 117/385: low hanging fruit, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 489e4c9 124/385: document explicit export fontification bug, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 91a1d08 136/385: creating small scenarios for indentation specs, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode ec39a64 133/385: improvements to indentation alts and compilation info, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode f67557b 142/385: fix a layout corner case, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 20f4091 152/385: support dollars in indentation, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 0d5e020 151/385: support LambdaCase, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 08a3946 163/385: records indentation, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 3449847 162/385: no need to special-case dollar, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 8b5a4d4 177/385: improve indentation tests, ELPA Syncer, 2021/10/06