mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-04 03:53:56 +00:00
fbe194fdf6
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 |
||
---|---|---|
.. | ||
androidndk-pkgs | ||
beam-modules | ||
bower-modules/generic | ||
chez-modules | ||
compilers | ||
coq-modules | ||
dhall-modules | ||
dotnet-modules | ||
em-modules/generic | ||
embedded | ||
gnuradio-modules | ||
go-modules | ||
go-packages | ||
guile-modules | ||
haskell-modules | ||
idris-modules | ||
interpreters | ||
java-modules | ||
libraries | ||
lisp-modules | ||
lisp-modules-new | ||
lua-modules | ||
misc | ||
mobile | ||
nim-packages | ||
node-packages | ||
ocaml-modules | ||
octave-modules | ||
perl-modules | ||
pharo | ||
php-packages | ||
python2-modules | ||
python-modules | ||
quickemu | ||
r-modules | ||
ruby-modules | ||
scheme-modules/scheme-bytestructures | ||
tools | ||
web |