zunit-zsh/zunit

Completely missing steps in setup

robobenklein opened this issue · 0 comments

I made an @setup test but some of the things never get parsed...

@setup {
  zinc_left=( zincs_userhost )

  prompt_zinc_setup
  echo $zinc_left
  this is something that gets ignored by zunit but shouldnt!
  literally anything past that prompt_zinc_setup gets ignored
}

It goes on to the tests later on in the file and they all fail since it's as if prompt_zinc_setup never got executed, and as the example says, the echo doesn't get parsed or executed either.

Trying to use Zunit here: https://github.com/robobenklein/zinc/blob/261cf980b813ea90424e49a3b5cba554072df42f/tests/zinc-base.zsh