[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#71843] [PATCH 23/26] gnu: Add go-github-com-marvinjwendt-testza.
From: |
Sharlatan Hellseher |
Subject: |
[bug#71843] [PATCH 23/26] gnu: Add go-github-com-marvinjwendt-testza. |
Date: |
Sun, 30 Jun 2024 10:06:03 +0100 |
* gnu/packages/golang-check.scm (go-github-com-marvinjwendt-testza): New
variable.
Change-Id: I7aae5264286beda3462fd17304a68d62fdcd3cdb
---
gnu/packages/golang-check.scm | 45 +++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm
index be282ee3e9..ddf2393406 100644
--- a/gnu/packages/golang-check.scm
+++ b/gnu/packages/golang-check.scm
@@ -604,6 +604,51 @@ (define-public go-github-com-jbenet-go-cienv
differently.")
(license license:expat)))
+(define-public go-github-com-marvinjwendt-testza
+ (package
+ (name "go-github-com-marvinjwendt-testza")
+ (version "0.5.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/MarvinJWendt/testza")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0mqvs9142wx3a352yj0zxcm8f3mclyqzzxjlpn1rsb3vrskgs8v9"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:go go-1.21
+ #:import-path "github.com/MarvinJWendt/testza"
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; An error that should be nil is not nil. Error message: "creating
+ ;; snapshot failed: <...> permission denied
+ (add-before 'check 'writable-test-file
+ (lambda* (#:key import-path #:allow-other-keys)
+ (with-directory-excursion (string-append "src/"
+ import-path
+ "/testdata/snapshots")
+ (for-each make-file-writable
+ (list "TestSnapshotCreate_file_content.testza"
+
"TestSnapshotCreate_file_content_string.testza"))))))))
+ (propagated-inputs
+ (list go-atomicgo-dev-assert
+ go-github-com-sergi-go-diff
+ go-github-com-davecgh-go-spew
+ go-github-com-klauspost-cpuid-v2
+ go-github-com-pterm-pterm))
+ (home-page "https://github.com/MarvinJWendt/testza")
+ (synopsis "Full-featured test framework for Golang")
+ (description
+ "Package testza is a full-featured testing framework for Go. It
+integrates with the default test runner, so you can use it with the standard
+@code{go test} tool. Testza contains easy to use methods, like assertions,
+output capturing, mocking, and much more.")
+ (license license:expat)))
+
(define-public go-github-com-onsi-ginkgo
(package
(name "go-github-com-onsi-ginkgo")
--
2.41.0
- [bug#71843] [PATCH 19/26] gnu: Add go-github-com-errata-ai-ini., (continued)
- [bug#71843] [PATCH 19/26] gnu: Add go-github-com-errata-ai-ini., Sharlatan Hellseher, 2024/06/30
- [bug#71843] [PATCH 21/26] gnu: Add go-atomicgo-dev-schedule., Sharlatan Hellseher, 2024/06/30
- [bug#71843] [PATCH 10/26] gnu: Add go-tengo., Sharlatan Hellseher, 2024/06/30
- [bug#71843] [PATCH 14/26] gnu: Add go-github-com-otiai10-mint., Sharlatan Hellseher, 2024/06/30
- [bug#71843] [PATCH 22/26] gnu: Add go-atomicgo-dev-keyboard., Sharlatan Hellseher, 2024/06/30
- [bug#71843] [PATCH 17/26] gnu: Add go-github-com-errata-ai-regexp2., Sharlatan Hellseher, 2024/06/30
- [bug#71843] [PATCH 24/26] gnu: Add go-github-com-pterm-pterm., Sharlatan Hellseher, 2024/06/30
- [bug#71843] [PATCH 18/26] gnu: Add go-github-com-jdkato-twine., Sharlatan Hellseher, 2024/06/30
- [bug#71843] [PATCH 09/26] gnu: Add go-github-com-d5-tengo-v2., Sharlatan Hellseher, 2024/06/30
- [bug#71843] [PATCH 16/26] gnu: Add go-github-com-neurosnap-sentences., Sharlatan Hellseher, 2024/06/30
- [bug#71843] [PATCH 23/26] gnu: Add go-github-com-marvinjwendt-testza.,
Sharlatan Hellseher <=
- [bug#71843] [PATCH 26/26] gnu: Add go-github-com-nwaples-rardecode-v2., Sharlatan Hellseher, 2024/06/30
- [bug#71843] [PATCH 20/26] gnu: Add go-atomicgo-dev-cursor., Sharlatan Hellseher, 2024/06/30
- [bug#71843] [PATCH 25/26] gnu: go-github-com-masterminds-sprig-v3: Update to 3.2.3., Sharlatan Hellseher, 2024/06/30