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
I know I have done some pull requests that at some point were breaking script on several VPS configs.
It would be good to have some Unit testing for current script, so it can be prevented in the future (or at least warned before it gets merged by accident).
So far it doesn't seem to be trivial at all, since we basically have one big bash script. I quite expect this issue to be opened for a while.
There are multiple things to be tested like regression test of performance, functionality on special cases (missing installs for some apps), text offsets and other things.
I do really like this Bats option. Not sure yet how we can implement it. Its quite possible that some reorganization of script will be required like more atomic functions.
The text was updated successfully, but these errors were encountered:
Definitely sounds like a good idea. Imho the difficulty will be the wide array of os'es FireMotD supports. What exactly do you mean with 'more atomic functions'?
Bats is mainly used for one-liner tests.
I'm not quite sure if there's any other approach other than having big amount of functions, which at this moment FireMotD doesn't really have.
I know I have done some pull requests that at some point were breaking script on several VPS configs.
It would be good to have some Unit testing for current script, so it can be prevented in the future (or at least warned before it gets merged by accident).
So far it doesn't seem to be trivial at all, since we basically have one big bash script. I quite expect this issue to be opened for a while.
There are multiple things to be tested like regression test of performance, functionality on special cases (missing installs for some apps), text offsets and other things.
I do really like this Bats option. Not sure yet how we can implement it. Its quite possible that some reorganization of script will be required like more atomic functions.
The text was updated successfully, but these errors were encountered: