GithubHelp home page GithubHelp logo

tysonjhayes / powershellguard Goto Github PK

View Code? Open in Web Editor NEW

This project forked from smurawski/powershellguard

0.0 1.0 0.0 20 KB

A Guard implementation for PowerShell

License: MIT License

PowerShell 100.00%

powershellguard's Introduction

Build status

PowerShellGuard

A Guard implementation for PowerShell

Why PowerShellGuard?

Streamlined workflow.

In conemu, I can dedicate a portion of my console window to just run tests. Using PowerShellGuard, I can watch my source code and trigger test runs of as much of my test harness as I want. This gives me fast feedback with minimal effort, making sure any changes that break existing behavior are noticed near when the changes are made.

Examples:

New-Guard -wait

Watch the files in the current directory for changes and run Pester on any changes.

New-Guard -Path .\lib\chef\knife\ -PathFilter '*.rb' -Recurse -TestCommand rspec -TestPath .\spec\unit\knife\
Wait-Guard

Watch all .rb files under .\lib\chef\knife and when they change, run the unit tests using RSpec.

dir *.ps1 | New-Guard -TestPath {"./Tests/$($_.basename).Tests.ps1"} -wait

Enumerate a directory and set up a test runner for each ps1 file based on its file name. For example hello.ps1 would have the test ./Tests/hello.Tests.ps1

Installing PowerShellGuard

You can install PowerShellGuard via PowerShellGet from the PowerShellGallery.

Install-Module PowerShellGuard

If you want the development feed (built from master),

Register-PSRepository -Name PowerShellGuard_current -SourceLocation 'https://ci.appveyor.com/nuget/PowerShellGuard/'
Install-Module PowerShellGuard -Source PowerShellGuard_current

Contributing

  • Source hosted at [GitHub][repo]
  • Report issues/questions/feature requests on [GitHub Issues][issues]

Pull requests are very welcome! Make sure your patches are well tested. Ideally create a topic branch for every separate change you make. For example:

  1. Fork the repo
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

powershellguard's People

Contributors

nohwnd avatar smurawski avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.