2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ginkgo";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "2.3.1";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "onsi";
|
|
|
|
repo = "ginkgo";
|
|
|
|
rev = "v${version}";
|
2022-10-21 18:38:19 +00:00
|
|
|
sha256 = "sha256-sBO0rJFRG38qAh1svChkbyCv8eJ9KjVPJHgOhxUMuH0=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
2022-10-21 18:38:19 +00:00
|
|
|
vendorSha256 = "sha256-yPzuhM0m+ltkz2z7D+DcFVjZ3OvGkJqQdc6iFidcty8=";
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
# integration tests expect more file changes
|
|
|
|
# types tests are missing CodeLocation
|
2022-04-15 01:41:22 +00:00
|
|
|
excludedPackages = [ "integration" "types" ];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-02-10 20:34:41 +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";
|
|
|
|
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-09-25 04:45:31 +00:00
|
|
|
license = licenses.mit;
|
2022-02-10 20:34:41 +00:00
|
|
|
maintainers = with maintainers; [ saschagrunert jk ];
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
}
|