bats-core / bats-action

Github action that setup Bats and all the bats libs: support, assert, detik, file.
MIT License
1 stars 4 forks source link

cannot load bats-support #12

Open kale1d0code opened 2 weeks ago

kale1d0code commented 2 weeks ago

I've added the devcontainer feature and am not able to load bats support or bats bats-assert.

these lines don't work in my test files load 'test_helper/bats-support/load' load 'test_helper/bats-assert/load'

kale1d0code commented 2 weeks ago

I read through the documentation.

the locations of bats-support and bats-assert should be updated to: '/usr/lib/bats/bats-support/load' and '/usr/lib/bats/bats-assert/load'

brokenpip3 commented 2 weeks ago

I read through the documentation.

the locations of bats-support and bats-assert should be updated to: '/usr/lib/bats/bats-support/load' and '/usr/lib/bats/bats-assert/load'

Hi :wave:

are you sure? in the action tests we use /usr/lib as BATS_LIB_PATH and is working correctly, example here.

Btw you are using the old way of loading the libraries:

if you expose the BATS_LIB_PATH env with value the base path where the libraries has been installed (in this case and by default it will be /usr/lib) then you can use the bats function bats_load_library to load the libraries.

You can check the action example here