You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have some scripts that depend on hardware and hence the need for my to use mock/stubs. Can anyone please share some insight as to how to setup a bats project, do all stub files go into a certain folder?
The text was updated successfully, but these errors were encountered:
I took a look at some of the "used by" projects, and tried to setup my structure like flash, although that repo sources from node modules, I have bats installed with brew.
Anyways if someone could please look at this project and tell me what's wrong, it does run my src/project.sh get_signal_level function but the stub isn't being injected for some reason and I get the following results.
src/ holds the project code
test/ holds bats tests and test_helper.bash with stub functions
How did you install bats-mock? looking in the mock folder under test your missing binstub. This is more then likely the cause of your issue as I recreated your project setup at my-bats-mock-test and was able to get a passing test. Since I installed both bats and bats-mock as submodules, you would need to use git clone --recursive to automatically download bats and bats-mock if you wanted to test on your local machine.
Hello, I have some scripts that depend on hardware and hence the need for my to use mock/stubs. Can anyone please share some insight as to how to setup a bats project, do all stub files go into a certain folder?
The text was updated successfully, but these errors were encountered: