TypedDevs / bashunit

A simple testing library for bash scripts. Test your bash scripts in the fastest and simplest way, discover the most modern bash testing library.
https://bashunit.typeddevs.com
MIT License
317 stars 27 forks source link

Allow define a custom .env when running bashunit #187

Closed Chemaclass closed 11 months ago

Chemaclass commented 11 months ago

Current

Currently, bashunit can load custom env vars defined within a .env file at the root of the project.

Expected

Allow defining a custom env file path when running bashunit, to load the env vars from that file. Eg:

./bashunit --env .env.test

HINT

Consider using this functionality with the current acceptance tests - to avoid writing ./bashunit --verbose line:16

Chemaclass commented 11 months ago

Done: https://github.com/TypedDevs/bashunit/pull/192