Skip to content

kevinobee/Docker.PesterRunner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pester Linux Runner

Provides an image to run Pester tests in a Linux container environment.

Other utilities like curl and Docker are also bundled with this image.

Usage

The following command builds the adminb/pester-runner image from the Dockerfile.

docker build -t adminb/pester-runner .

To run the image use the command below:

docker run -v /var/run/docker.sock:/var/run/docker.sock -v ${pwd}:/test adminb/pester-runner

The pester-runner image will run all the tests found in the folder /test. The /test folder can be mapped as a volume to a local folder or can be populated when creating another image.

For example, running the following PowerShell command will run any Pester tests found in the current directory and folders that it contains:

docker run -v /var/run/docker.sock:/var/run/docker.sock -v ${pwd}:/test adminb/pester-runner

Executing all tests in '.'
Tests completed in 0ms
Tests Passed: 0, Failed: 0, Skipped: 0, Pending: 0, Inconclusive: 0

In the instance shown above no Pester tests were detected so no activities were actually tested. Add some tests to the current directory or point the /test volume mount at a location containing Pester tests and these will be run by the pester-runner container.

Docker is also available, it can be used to mount a volume sharing the /var/run/docker.sock from the host, to execute docker commands.

About

Docker image for a Linux-based Pester test runner

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%