vendredi 9 août 2019

Using Remote PowerShell for Cross-Platform Integration Testing

I am looking for a way to write integration tests controlled from a single place but executed on multiple machines at the same time. I am toying with the idea of using remote PowerShell and PowerShell core, but I was wondering if anybody had done something similar already.

Here is the idea:

I would need a test framework usable in PowerShell, a unit testing framework should do. Each "unit" test would make one or multiple remote PowerShell sessions on different virtual machines, making it possible to setup both a client and server to perform a series of tests. An improvement over this would involve creating throwaway virtual machines for each series of tests, making it easier to reproduce the same results over time.

I'm thinking Hyper-V or KVM would work well for the virtual machines. What I need is a good way to spin VMs and connect to them through remote PowerShell in an automated way. Last but not least, I'd need a good test framework to organize a series of tests to be executed.

Maybe this has already been done with python or other languages. In this case, unit tests don't cut it, because I need multiple machines on a network, and I need to control the state of both the client and server to make the tests. I would work on instrumenting my application so it can be controlled through a PowerShell cmdlet.

Any thoughts?

Aucun commentaire:

Enregistrer un commentaire