bats tests under docker ? #3321
Replies: 6 comments 7 replies
-
Definitely worth trying out -- though while being careful about what it can actually achieve and what it cannot.
|
Beta Was this translation helpful? Give feedback.
-
That's the purpose of this discussion :)
Should be doable without too much effort.
Not the priority but could be achieved with some works
What I mean is to be able to source files directly with minimal mocking to be able to test bash function independently or part of libexec.
Yes, but the build part we'll be more cumbersome and could be address in a second PR
I had eyes on https://github.com/sickcodes/Docker-OSX but didn't follow the achievement of the project
For bats tests, it is only a question of which shell you want to try, so the local test is not mandatory I think compared to the build test. Right ? |
Beta Was this translation helpful? Give feedback.
-
In a container who's running alpine (musl) , the library realpath used do not return anything not even an error, so I plan to do not use it if an empty string is returned but should be addressed to at least return an error IMO. |
Beta Was this translation helpful? Give feedback.
-
FYI, I have a first release who achieve what we talked about here, but hit something odd with test-plugin on macos13 (not macos14). |
Beta Was this translation helpful? Give feedback.
-
Not sure if you're notified when a PR is open @native-api (I assume), so to be sure, I've opened one about the subject who covers other things too |
Beta Was this translation helpful? Give feedback.
-
Merged in master |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Will you be open to a PR who implement bats test under docker with multiple bash versions with/without gnu tools ?
The idea behind this, is to be able to :
But it implies to have docker on our dev env...
If yes, I could try to open a PR with minimal changes to have the same tests passing
Beta Was this translation helpful? Give feedback.
All reactions