nixpkgs/pkgs/development
Silvan Mosberger fbe194fdf6 bats: Add library wrapper
Adds a `bats.withLibraries (p: [ ... ])` function, which creates a
`bats` wrapper where the `BATS_LIB_PATH` environment variable contains
fallbacks for the given list of libraries.

This allows to e.g. use the `bats-assert` library (which itself requires the
`bats-support` library) with

    bats.withLibraries (p: [ p.bats-support p.bats-assert ])

In a `.bats` file you can then call `bats_load_library` [1] to load the
libraries in the `setup()` function:

    setup() {
      bats_load_library bats-support
      bats_load_library bats-assert
    }

[1]: https://bats-core.readthedocs.io/en/stable/writing-tests.html?highlight=library#bats-load-library-load-system-wide-libraries
2022-08-08 20:20:10 +02:00
..
androidndk-pkgs
beam-modules
bower-modules/generic
chez-modules
compilers Merge pull request #178567 from Artturin/pkgconfignew 2022-07-20 23:31:58 -03:00
coq-modules first release of Metacoq 2022-07-20 16:52:11 +02:00
dhall-modules
dotnet-modules
em-modules/generic
embedded Merge master into staging-next 2022-07-19 12:01:43 +00:00
gnuradio-modules
go-modules buildGoModules: don't add kalbasit as maintainer to every go package 2022-07-20 18:28:36 +02:00
go-packages
guile-modules
haskell-modules haskellPackages.fast-tags: unbreak 2022-07-20 11:40:24 -07:00
idris-modules
interpreters bats: Add library wrapper 2022-08-08 20:20:10 +02:00
java-modules
libraries Merge pull request #181917 from helsinki-systems/upd/libproxy 2022-07-21 14:20:08 +02:00
lisp-modules
lisp-modules-new
lua-modules
misc
mobile
nim-packages
node-packages
ocaml-modules ocamlPackages.cohttp-async: Remove redundant patch that doesn't apply 2022-07-21 10:01:16 +02:00
octave-modules
perl-modules
pharo
php-packages php81Packages.composer: 2.3.7 -> 2.3.10 2022-07-19 18:09:44 +02:00
python2-modules
python-modules Merge pull request #182234 from fabaff/identify-bump 2022-07-21 10:45:54 +02:00
quickemu
r-modules
ruby-modules
scheme-modules/scheme-bytestructures
tools Merge pull request #182158 from marsam/update-sqlint 2022-07-21 08:33:19 +02:00
web