mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
45 lines
1.5 KiB
Nix
45 lines
1.5 KiB
Nix
{ lib, buildGoModule, fetchFromGitHub, testers, ginkgo }:
|
|
|
|
buildGoModule rec {
|
|
pname = "ginkgo";
|
|
version = "2.9.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "onsi";
|
|
repo = "ginkgo";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-1Hb8pCvPs/L5UU280XwwEOnQ1CjJjgw0+GdCbtLkIpg=";
|
|
};
|
|
vendorHash = "sha256-IxyPRUS7aqkfZ+hjtuopCd95dgiTgVdg1thSiTBZArg=";
|
|
|
|
# integration tests expect more file changes
|
|
# types tests are missing CodeLocation
|
|
excludedPackages = [ "integration" "types" ];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = ginkgo;
|
|
command = "ginkgo version";
|
|
};
|
|
|
|
meta = with lib; {
|
|
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.
|
|
'';
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ saschagrunert jk ];
|
|
};
|
|
}
|