[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/go-mode 839190b 455/495: Run all tests in GH CI
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/go-mode 839190b 455/495: Run all tests in GH CI |
Date: |
Sat, 7 Aug 2021 09:06:08 -0400 (EDT) |
branch: elpa/go-mode
commit 839190b649ab4320401b62d3e69c1973e463b04b
Author: Muir Manders <muir@mnd.rs>
Commit: Peter Sanford <psanford@sanford.io>
Run all tests in GH CI
And fix go-fill-paragraph-test.el to pass from the command line. Not
sure exactly what is wrong, but fill-paragraph wasn't doing the right
thing with a region selected when invoked from the command line. There
could be a real bug here, but I wasn't able to reproduce the failures
functionally in Emacs.
Closes: #308 [via git-merge-pr]
---
.github/workflows/emacs.yml | 2 +-
test/go-fill-paragraph-test.el | 11 ++++++++---
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/emacs.yml b/.github/workflows/emacs.yml
index 1075d76..898e854 100644
--- a/.github/workflows/emacs.yml
+++ b/.github/workflows/emacs.yml
@@ -14,4 +14,4 @@ jobs:
uses: actions/checkout@v1
- name: Test
- run: cd test; emacs --batch -q -l ert -l ../go-mode.el -l
go-indentation-test.el -f ert-run-tests-batch-and-exit
+ run: cd test; emacs --batch -q -l ert -l ../go-mode.el $(for t in
*-test.el; do echo -n "-l $t "; done) -f ert-run-tests-batch-and-exit
diff --git a/test/go-fill-paragraph-test.el b/test/go-fill-paragraph-test.el
index 8c5deda..c72bee9 100644
--- a/test/go-fill-paragraph-test.el
+++ b/test/go-fill-paragraph-test.el
@@ -4,6 +4,9 @@
;; Use of this source code is governed by a BSD-style
;; license that can be found in the LICENSE file.
+(require 'ert)
+(require 'go-mode)
+
(defun go--should-fill (got expected)
"Run `fill-paragraph' against GOT and make sure it matches EXPECTED.
@@ -15,9 +18,11 @@ represents point and mark to test the region based
fill-paragraph."
(goto-char (point-min))
(let ((beg (progn (search-forward "<") (delete-char -1) (point)))
(end (progn (search-forward ">") (delete-char -1) (point))))
- (when (/= beg end)
- (set-mark beg))
- (call-interactively 'fill-paragraph)
+ (if (/= beg end)
+ (progn
+ (set-mark beg)
+ (call-interactively 'fill-region))
+ (call-interactively 'fill-paragraph))
(should (string= (buffer-string) expected)))))
(ert-deftest go--fill-paragraph-no-comment ()
- [nongnu] elpa/go-mode 8ddf0b3 433/495: Speed up go-goto-opening-parenthesis, (continued)
- [nongnu] elpa/go-mode 8ddf0b3 433/495: Speed up go-goto-opening-parenthesis, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode fdc1545 436/495: Fix indent for case statement comments, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode d387378 438/495: indent: handle comments after multiline case lists, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode fbf2544 444/495: Improve fill-paragraph for comment blocks., ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode e7e0157 447/495: indent: fix indent at top level of file, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 3bc7479 450/495: Fix infinite loop in fill-region, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 88ffc9e 452/495: Add github action yaml file to run ert tests, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 4f15abf 449/495: Fix fill-paragraph for certain block comments., ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode a13b814 448/495: Add option to reuse a single buffer for godoc, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode a82369b 453/495: Readme: add basic information about gopls., ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 839190b 455/495: Run all tests in GH CI,
ELPA Syncer <=
- [nongnu] elpa/go-mode 7248358 462/495: Fontify type names in type switch statements, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 4fabba6 464/495: Small fix for fontification of array types, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 656590a 463/495: Fontify qualified composite literal types., ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode d304565 474/495: Fix signature fontification after comments., ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode e9b9c0e 473/495: Add some fontification faces for go-dot-mod-mode., ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 4acf733 468/495: Fully fontify type and const decls., ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode dac200f 469/495: Fix font locking in nested signatures., ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode fa2162b 475/495: Fix "nil" fontification in type switch clause., ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 7ce031c 481/495: Allow disabling variable font locking., ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode e10d677 478/495: indent: fix func literals in dangling lines, ELPA Syncer, 2021/08/07