2023-03-06 03:09:23 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, testers, ginkgo }:
|
2020-08-25 10:40:33 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ginkgo";
|
2024-05-08 06:34:20 +00:00
|
|
|
version = "2.17.3";
|
2020-08-25 10:40:33 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "onsi";
|
|
|
|
repo = "ginkgo";
|
|
|
|
rev = "v${version}";
|
2024-05-08 06:34:20 +00:00
|
|
|
sha256 = "sha256-JIKEuYhzX/gTO2YYI3u1I9YBbXGkdmoQ3kiSfTwu/Qg=";
|
2020-08-25 10:40:33 +00:00
|
|
|
};
|
2024-04-28 01:12:53 +00:00
|
|
|
vendorHash = "sha256-qLyqG7A4TEsZSF8olXWc2BIYZukQx/xHsnbYTfC/w4A=";
|
2022-02-07 20:29:10 +00:00
|
|
|
|
|
|
|
# integration tests expect more file changes
|
|
|
|
# types tests are missing CodeLocation
|
2022-02-26 15:01:37 +00:00
|
|
|
excludedPackages = [ "integration" "types" ];
|
2020-08-25 10:40:33 +00:00
|
|
|
|
2023-03-06 03:09:23 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = ginkgo;
|
|
|
|
command = "ginkgo version";
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-02-07 20:29:10 +00:00
|
|
|
homepage = "https://onsi.github.io/ginkgo/";
|
|
|
|
changelog = "https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md";
|
|
|
|
description = "A Modern Testing Framework for Go";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "ginkgo";
|
2022-02-07 20:29:10 +00:00
|
|
|
longDescription = ''
|
|
|
|
Ginkgo is a testing framework for Go designed to help you write expressive
|
|
|
|
tests. It is best paired with the Gomega matcher library. When combined,
|
|
|
|
Ginkgo and Gomega provide a rich and expressive DSL
|
|
|
|
(Domain-specific Language) for writing tests.
|
|
|
|
|
|
|
|
Ginkgo is sometimes described as a "Behavior Driven Development" (BDD)
|
|
|
|
framework. In reality, Ginkgo is a general purpose testing framework in
|
|
|
|
active use across a wide variety of testing contexts: unit tests,
|
|
|
|
integration tests, acceptance test, performance tests, etc.
|
|
|
|
'';
|
2020-08-25 10:40:33 +00:00
|
|
|
license = licenses.mit;
|
2022-02-07 20:29:10 +00:00
|
|
|
maintainers = with maintainers; [ saschagrunert jk ];
|
2020-08-25 10:40:33 +00:00
|
|
|
};
|
|
|
|
}
|