Is there a unit testing framework for testing PowerShell with PowerShell scripts? [closed]
Asked Answered
H

4

16

I am lookin for a unit testing framework of type xUnit that lets me test PowerShell functions with PowerShell scripts.

Hussar answered 16/6, 2009 at 23:34 Comment(1)
There is a similar question: #940997Footpath
H
3

I also found PSUnit on Codeplex. PSUnit PowerShell Unit Testing Framework

There are some cool screen shots and a release is expected in August this year.

Hussar answered 29/7, 2009 at 6:57 Comment(0)
T
7

Well, just for completeness: There is actually PSUnit. Doesn't seem to be very mature, though as I see only two spikes of activity since its beginning as well as no documentation to speak of.

But as I learnt from cuTest, unit testing is something that fits into a very small space (at least for C in that case), so having something that works might not require too much effort.

Tradelast answered 17/6, 2009 at 4:49 Comment(1)
It seems PsUnit started moving codeplex.com/PSUnitFootpath
P
4

While not an actual framework a la xUnit, Lee Holmes did write an article about how to unit test PowerShell using PowerShell scripts.

Pistoia answered 16/6, 2009 at 23:44 Comment(0)
H
3

I also found PSUnit on Codeplex. PSUnit PowerShell Unit Testing Framework

There are some cool screen shots and a release is expected in August this year.

Hussar answered 29/7, 2009 at 6:57 Comment(0)
E
2

From the project page for Pester:

Pester provides a framework for running unit tests to execute and validate PowerShell commands from within PowerShell.

Environs answered 5/1, 2017 at 16:46 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.