Git Product home page Git Product logo

snooper's Introduction

Snooper

Snooper is a lightweight test automation tool, it monitors files and folders while you work and re-runs your tests when you change something. Snooper doesn't care what language you're using or what framework you are testing with, it's all configurable.

Usage

$ snooper <--config CONFIG | -h> <command>

See snooper(1) for more information.

Options

Snooper expects a YAML document of key-value pairs; each pair specifies an option. Unknown options are ignored. Options that can contain a list of values may also be given a single value.

String options: base_path:, command:

String Array options: paths:, filters:, ignored:

Note: filters: and ignored: are regular expressions. This means that \.c will match both foo.c and bar.cfg, \.c$ will only match .c files.

<script src="https://gist.github.com/iwillspeak/5191785.js"></script>

Licence

Snooper is open source! For more information check out the licence.

snooper's People

Contributors

iwillspeak avatar orthographic-pedant avatar

Stargazers

Stefan Braun avatar  avatar

Watchers

James Cloos avatar  avatar

Forkers

pombreda

snooper's Issues

Allow Multiple Commands

Not quite sure how this will work, it may only be configurable from the .yaml file or something like that.

Handle the Config Changing

Allow the config file to change while the program is running. This could either be by the run loop exiting with a special value or by the object itself being made capable of re-loading it's config.

Add `snooper init` command.

Allow people to quickly set Snooper up from the command line. Just need to write out a simple config to the default location

Allow Creation of Hooks

Hooks would be a command that is conditionally executed when a file or path matching a given regular expression is found. This would allow the conditional-cleaning of a repo only if a header file changed for example.

Fix the Irony

We don't have any tests, yet this whole project is about continuous unit testing for everyone ๐Ÿ˜’

Update Rakefile

Add documentation build stuff with proper dependencies and use CLEAN and CLOBBER for cleaning.

Update to Work on Windows

At the moment the requirement for the Terminfo module means that we dont' support windows. It's only needed to get the width of the terminal so we should be able to work without it.

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.