Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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
like image 789
Emiliano Poggi Avatar asked Apr 17 '11 05:04

Emiliano Poggi


2 Answers

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.

like image 177
Scott Muc Avatar answered Nov 03 '22 00:11

Scott Muc


We are using Pester in our project. It serves our purpose and we are trying to improve upon it. And yeah, the author is my colleague and wrote it for the project.

There is also PowerSpec - https://github.com/shishkin/PowerSpec ( though the description says it is aimed at TDD with Powershell )

like image 2
manojlds Avatar answered Nov 03 '22 00:11

manojlds