summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2025-05-28 10:58:00 +0900
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-06-24 10:30:06 +0100
commitceb72c6a40e3b9aa85d2265bf2d60dacb904031a (patch)
treee1cded3941cfdf8c17e958777364d8bd46ffed02
parent99ff113083cd5477d16eb943f8087c4fd16568dd (diff)
gnu: Add go-github-com-nbio-st.
* gnu/packages/golang-check.scm (go-github-com-nbio-st): New variable. Change-Id: I7a2b0d463c5a8d784b6e50814eacb45352cda590 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
-rw-r--r--gnu/packages/golang-check.scm36
1 files changed, 36 insertions, 0 deletions
diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm
index 9c355d5e4e..8cd2cf52d5 100644
--- a/gnu/packages/golang-check.scm
+++ b/gnu/packages/golang-check.scm
@@ -1552,6 +1552,42 @@ testing capabilities.")
Perl's @url{https://metacpan.org/pod/Test::Deep, Test::Deep perl}.")
(license license:bsd-2)))
+(define-public go-github-com-nbio-st
+ (package
+ (name "go-github-com-nbio-st")
+ (version "0.0.0-20140626010706-e9e8d9816f32")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/nbio/st")
+ (commit (go-version->git-ref version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "14r4acm82gp9ikqnp41a06bm4mrdlbskakhibbxsc5ljav7bni27"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/nbio/st"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'delete-problematic-tests
+ (lambda _
+ ;; The readme_test.go file contains failing tests on
+ ;; purpose to demonstrate the failing output.
+ (delete-file "src/github.com/nbio/st/readme/readme_test.go"))))))
+ (home-page "https://github.com/nbio/st")
+ (synopsis "Tiny test framework for Go")
+ (description
+ "Package @code{st}, pronounced @emph{ghost}, is a tiny test framework for
+making short, useful assertions in your Go tests. @samp{Assert(t, have, want)
+and Refute(t, have, want)} abort a test immediately with @code{t.Fatal}.
+@samp{Expect(t, have, want) and Reject(t, have, want)} allow a test to
+continue, reporting failure at the end with @code{t.Error}. They print nice
+error messages, preserving the order of @code{have} (actual result) before
+@code{want} (expected result) to minimize confusion.")
+ (license license:asl2.0)))
+
(define-public go-github-com-onsi-ginkgo
(package
(name "go-github-com-onsi-ginkgo")