Search code examples
powershellbddpester

Anyone's using BDD in Powershell?


I've found a lot of threads around this question here at stackoverflow. They are 2 years old now. So I would like to know if someone is using scottmuc functions to perform a BDD in powershell. It seems very powerful at first sight.

What's your opinion about? Somebody knows some other well effective BDD framework? I would like something really close to rspec.

Note I need BDD not TDD (PSUnit) suggestions/indications.


No many using BDD on powershell then, seen the answers :). Does it mean that BDD is not useful at all, only because powershell is just scripting? I don't think it's a valid reason.

Anyway here the list up to now:

  • Pester, much more close to something like rspec
  • PowerSpec, is seems just a few should

Solution

  • I'm the author of Pester and happy to see that you found it! Pester was created to surround another project I did called PowerYaml (as well as the stuff @manojlds mentioned). I wanted to refactor it, but without test coverage, I didn't feel comfortable doing that. So Pester was born, and PowerYaml got refactored. It might be a decent example to show a real world situation where it is useful.

    Secondly, I've just recently published a blog post that my shed some light on how to use Pester and it's workflow.

    Hope this helps. If you have feature requests, please submit them to the github project.