-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests to check if key autoloaded functions can be called without triggering errors in a fresh Emacs session.
- Loading branch information
Showing
12 changed files
with
133 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
(load "test/helpers/setup.el") | ||
(require 'buttercup) | ||
(describe | ||
"autoloaded entry point" | ||
|
||
(it "org-gtd-engage" | ||
(expect | ||
(ogt--recursive-eldev-test "autoload-tests/org-gtd-engage-test.el") | ||
:to-equal 0)) | ||
|
||
(it "org-gtd-show-all-next" | ||
(expect | ||
(ogt--recursive-eldev-test | ||
"autoload-tests/org-gtd-show-all-next-test.el") | ||
:to-equal 0)) | ||
|
||
(it "org-gtd-archive-completed-items" | ||
(expect | ||
(ogt--recursive-eldev-test | ||
"autoload-tests/org-gtd-archive-completed-items-test.el") | ||
:to-equal 0)) | ||
|
||
(it "org-gtd-capture" | ||
(expect | ||
(ogt--recursive-eldev-test | ||
"autoload-tests/org-gtd-capture-test.el") | ||
:to-equal 0)) | ||
|
||
(it "org-gtd-inbox-path" | ||
(expect | ||
(ogt--recursive-eldev-test | ||
"autoload-tests/org-gtd-inbox-path-test.el") | ||
:to-equal 0)) | ||
|
||
(it "org-gtd-clarify-mode" | ||
(expect | ||
(ogt--recursive-eldev-test | ||
"autoload-tests/org-gtd-clarify-mode-test.el") | ||
:to-equal 0)) | ||
|
||
(it "org-gtd-review-area-of-focus" | ||
(expect | ||
(ogt--recursive-eldev-test | ||
"autoload-tests/org-gtd-review-area-of-focus-test.el") | ||
:to-equal 0)) | ||
|
||
(it "org-gtd-review-stuck-projects" | ||
(expect | ||
(ogt--recursive-eldev-test | ||
"autoload-tests/org-gtd-review-stuck-projects-test.el") | ||
:to-equal 0)) | ||
|
||
(it "org-gtd-process-inbox" | ||
(expect | ||
(ogt--recursive-eldev-test | ||
"autoload-tests/org-gtd-process-inbox-test.el") | ||
:to-equal 0)) | ||
|
||
(it "org-gtd-mode" | ||
(expect | ||
(ogt--recursive-eldev-test | ||
"autoload-tests/org-gtd-mode-test.el") | ||
:to-equal 0)) | ||
|
||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
(require 'buttercup) | ||
(setq org-gtd-update-ack "3.0.0") | ||
(require 'org-gtd-autoloads) | ||
|
||
(org-gtd-archive-completed-items) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
(require 'buttercup) | ||
(setq org-gtd-update-ack "3.0.0") | ||
(require 'org-gtd-autoloads) | ||
|
||
(require 'with-simulated-input) | ||
(with-simulated-input "i" | ||
(org-gtd-capture)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
(require 'buttercup) | ||
(setq org-gtd-update-ack "3.0.0") | ||
(require 'org-gtd-autoloads) | ||
|
||
(org-gtd-clarify-mode) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
(require 'buttercup) | ||
(setq org-gtd-update-ack "3.0.0") | ||
(require 'org-gtd-autoloads) | ||
|
||
(org-gtd-engage) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
(require 'buttercup) | ||
(setq org-gtd-update-ack "3.0.0") | ||
(require 'org-gtd-autoloads) | ||
|
||
(org-gtd-inbox-path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
(require 'buttercup) | ||
(setq org-gtd-update-ack "3.0.0") | ||
(require 'org-gtd-autoloads) | ||
|
||
(org-gtd-mode) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
(require 'buttercup) | ||
(setq org-gtd-update-ack "3.0.0") | ||
(require 'org-gtd-autoloads) | ||
|
||
(org-gtd-process-inbox) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
(require 'buttercup) | ||
(setq org-gtd-update-ack "3.0.0") | ||
(require 'org-gtd-autoloads) | ||
|
||
(org-gtd-review-area-of-focus | ||
(car org-gtd-areas-of-focus)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
(require 'buttercup) | ||
(setq org-gtd-update-ack "3.0.0") | ||
(require 'org-gtd-autoloads) | ||
|
||
(org-gtd-review-stuck-projects) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
(require 'buttercup) | ||
(setq org-gtd-update-ack "3.0.0") | ||
(require 'org-gtd-autoloads) | ||
|
||
(org-gtd-show-all-next) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters