Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.3.1 #5

Merged
merged 2 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGELOG.org
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file.
The format is based on [[https://keepachangelog.com/en/1.1.0][Keep a Changelog]], and this project *DOES NOT* adhere to [[https://semver.org/spec/v2.0.0.html][Semantic
Versioning]].

** [[https://github.com/simendsjo/sijo-doctest/compare/v0.3..v0.3.1][0.3.1]] - 2024-03-11
*** Added
*** Changed
*** Deprecated
*** Removed
*** Fixed
- ~test-package~ return failed/passed, not just ~nil~
*** Security

** [[https://github.com/simendsjo/sijo-doctest/compare/v0.2..v0.3][0.3.0]] - 2024-03-11
*** Added
- Support Embedded Common Lisp (ECL)
Expand Down
2 changes: 1 addition & 1 deletion sijo-doctest.asd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(defsystem :sijo-doctest
:in-order-to ((test-op (test-op :sijo-doctest/tests)))
:description "Doctests for Common Lisp"
:version "0.3"
:version "0.3.1"
:author "Johan Lindberg (Pulp Software) <[email protected]>, Simen Endsjø <[email protected]>"
:licence "GPL"
:serial t
Expand Down
3 changes: 2 additions & 1 deletion src/doctest.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,8 @@
(when (eq *package* (symbol-package symbol))
(multiple-value-bind (tests-failed tests-passed) (test symbol :output output)
(incf total-failed tests-failed)
(incf total-passed tests-passed)))))))
(incf total-passed tests-passed)))))
(values total-failed total-passed)))

(defun print-results (test-name test-type output tests-failed tests-passed)
(when (> tests-failed 0)
Expand Down