nestorsalceda / mamba

The definitive testing tool for Python. Born under the banner of Behavior Driven Development (BDD).
http://nestorsalceda.github.io/mamba
MIT License
518 stars 65 forks source link

Fix multiple hook execution #123

Open kfischer-okarin opened 5 years ago

kfischer-okarin commented 5 years ago

As stated in issue #105, before_all and after_all hooks were executed several times (but only if the nested context had a hook of the same kind).

This Pull Request should fix the issue.

kfischer-okarin commented 5 years ago

@nestorsalceda Just mentioning you to be safe... Sorry if you're busy

I'm also thinking about implementing a JUnit formatter (for CircleCI integration) soon in addition to the two Pull Requests that are out right now

nestorsalceda commented 5 years ago

Auch! I didn't see this before! Sorry man!

Let me to check this and merge this weekend, but it looks good!

kfischer-okarin commented 5 years ago

131 has a more comprehensive fix to this problem I think, so this one could be closed