Skip to content

Commit 49b1092

Browse files
committed
Tests for testing subcommands
1 parent 794caee commit 49b1092

File tree

18 files changed

+265
-0
lines changed

18 files changed

+265
-0
lines changed

test/exit-status/test/Eask

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
(package "lint"
2+
"0.0.1"
3+
"Test project for lint")
4+
(package-file "lint-pkg.el")
5+
6+
(source 'gnu)
7+
(source 'melpa)

test/exit-status/test/activate/Eask

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
(package "test-activate"
2+
"0.0.1"
3+
"Test project for test-activate")
4+
(package-file "test-activate-pkg.el")
5+
6+
(source 'gnu)
7+
(source 'melpa)
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
;;; test-activate.el --- Test "activate" -*- lexical-binding: t; -*-
2+
3+
;; Copyright (C) 2022-2024 the Eask authors.
4+
5+
;; This program is free software; you can redistribute it and/or modify
6+
;; it under the terms of the GNU General Public License as published by
7+
;; the Free Software Foundation, either version 3 of the License, or
8+
;; (at your option) any later version.
9+
10+
;; This program is distributed in the hope that it will be useful,
11+
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
;; GNU General Public License for more details.
14+
15+
;; You should have received a copy of the GNU General Public License
16+
;; along with this program. If not, see <https://www.gnu.org/licenses/>.
17+
18+
;;; Version: 0.0.1
19+
20+
;;; Commentary:
21+
22+
;;; Code:
23+
24+
(declare-function ignore "subr.el" (&rest args))
25+
26+
(eval-after-load
27+
'test-activate
28+
(warn "called on activate"))
29+
30+
(provide 'test-activate)
31+
32+
;;; test-activate.el ends here

test/exit-status/test/buttercup/Eask

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
(package "test-buttercup"
2+
"0.0.1"
3+
"Test project for test-buttercup")
4+
(package-file "test-buttercup-pkg.el")
5+
6+
(source 'gnu)
7+
(source 'melpa)
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
;;; -*- lexical-binding: t; -*-
2+
(describe "A suite"
3+
(it "contains a spec with an expectation"
4+
(expect t :to-be t)))
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
;;; -*- lexical-binding: t; -*-
2+
(describe "A suite"
3+
(it "contains a spec with an expectation"
4+
(expect t :to-be t)))
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
;;; -*- lexical-binding: t; -*-
2+
(describe "A failing suite"
3+
(it "contains a spec with a failed expectation"
4+
(expect t :to-be nil)))

test/exit-status/test/ecukes/Eask

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
(package "ecukes"
2+
"0.0.1"
3+
"Test project for command `ecukes'")
4+
5+
(package-file "ecukes.el")
6+
7+
(source 'gnu)
8+
(source 'melpa)
9+
10+
(development
11+
(depends-on "ecukes"))
12+
13+
(setq network-security-level 'low) ; see https://github.com/jcs090218/setup-emacs-windows/issues/156#issuecomment-932956432
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Feature: Bad test
2+
3+
Scenario: This fails
4+
Then identical things are different

test/exit-status/test/ecukes/features/foo.feature

Whitespace-only changes.

0 commit comments

Comments
 (0)