zunit-zsh / zunit

A powerful testing framework for ZSH projects
https://zunit.xyz
MIT License
208 stars 23 forks source link

Completely missing steps in setup #103

Open robobenklein opened 5 years ago

robobenklein commented 5 years ago

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