laurent22 / rsync-time-backup

Time Machine style backup with rsync.
3.38k stars 446 forks source link

First attempt at CI Testing #204 #205

Open reactive-firewall opened 4 years ago

reactive-firewall commented 4 years ago

First attempt at laurent22/rsync-time-backup#204

🤔 ... Thoughts? Reviews? Thumbs up?

fthiery commented 4 years ago

This is extremely needed IMO. Not a reason not to try, but some stuff is impossible to simulate unfortunately (e.g. https://github.com/laurent22/rsync-time-backup/issues/64)

Thanks for working on that

reactive-firewall commented 2 years ago

@fthiery

but some stuff is impossible to simulate unfortunately (e.g. #64)

TL;DR I think you're missing an important "easily" between "to" and "simulate. With that assumption it might be worth pointing out that this (#64) kind of use-case would best be tested by mocking the issue. By mocking the failed output of rsync we can skip the long time of waiting on rsync while testing this case. This test would be something like replacing the rsync command with a mocked rsync script that just outputs the lost error behavior without the data, thus separating out the fail case so it may be used to test the handling function.

caveat: however I could be totally wrong and you may mean something else.