diff options
author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-06-24 21:32:05 +0100 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-07-03 22:23:23 +0100 |
commit | 9cc4177a97659c6f771cb4174b221a02804373d6 (patch) | |
tree | deca9826dbaf26fb190467fdcaae7372f02420d4 /gnu/packages | |
parent | 5ed48f9d6c857dfb8e863b18d5099d82d17d8d2d (diff) | |
download | guix-9cc4177a97659c6f771cb4174b221a02804373d6.tar.gz guix-9cc4177a97659c6f771cb4174b221a02804373d6.zip |
gnu: Add go-github-com-marvinjwendt-testza.
* gnu/packages/golang-check.scm (go-github-com-marvinjwendt-testza): New variable.
Change-Id: I7aae5264286beda3462fd17304a68d62fdcd3cdb
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/golang-check.scm | 45 |
1 files changed, 45 insertions, 0 deletions
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 @@ Many times certain facilities are not available, or tests must run 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") |