jbrains,
@jbrains@mastodon.social avatar

Trying to do something like with

I'm using Golden Master technique and I've committed the expected output to git.

This is "assert all remains well" while refactoring:

git diff --exit-code --quiet Testing/; if (( $? )) then; echo "FAIL"; else; echo "OK"; fi

jbrains,
@jbrains@mastodon.social avatar

Zero-button/Continuous testing:

find . | entr -s 'echo "\n\n" && date && git diff --exit-code --quiet Testing/; if (( $? )) then; echo 'FAIL'; else; echo 'OK'; fi'

lewiscowles1986,
@lewiscowles1986@phpc.social avatar

@jbrains
is this related to https://mastodon.social/@jbrains/111846184994801060 at all?

When you use inter-process testing, how much control over the environment are you looking for?

For me magic environment vars affecting behaviour are something I want to not have when executing a sub-process

Thinking
env -i PATH=$PATH bash -c "${yourcommand}"

I use bash or $SHELL because it adds some minimal expected environment; but not much

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • Durango
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • khanakhh
  • InstantRegret
  • Youngstown
  • ngwrru68w68
  • slotface
  • rosin
  • tacticalgear
  • mdbf
  • kavyap
  • modclub
  • megavids
  • osvaldo12
  • ethstaker
  • cubers
  • normalnudes
  • everett
  • tester
  • GTA5RPClips
  • Leos
  • cisconetworking
  • provamag3
  • anitta
  • JUstTest
  • lostlight
  • All magazines