Skip to main content

crunner

crunner is small application to run test after every change and notify about results.

Main features:

  • continuously watch directories

  • execute proper tests after every change

  • send notification about test result

  • test framework independent

  • notifier independent

Requirements

  • Python 2.7.x (not tested with Python 3.x)

  • watchdog (python package)

  • mock (for testing)

Continues Integration

https://drone.io/github.com/pchomik/crunner/status.png

Download

Latest version of plugin is available in drone.io project artifacts.

Install

pip install crunner

Configuration

Configuration file .crunner.json has to created in user home directory. The format of the file looks like below:

{
  "notifier": {
    "cmd": "/usr/bin/notify-send",
    "img_arg": "-i",
    "msg_arg": "",
    "add_args": ""
  },
  "tester": {
    "cmd": "/usr/local/bin/py.test",
    "args": "-s --timeout 1 --random --pep8",
    "run_on_startup": true
  },
  "projects": {
    "crunner": {
      "active": true,
      "test_path": "/home/user/workspace/crunner/test/",
      "project_path": "/home/user/workspace/crunner"
    }
  }
}

Presented configuration is notifier and test framework independent. It is possible to extend this configuration to watch multiple projects by adding new configuration project.

Contribution

Please feel free to present your idea by code example (pull request) or reported issues.

License

crunner - Application to run test continuously and notify about every change

Copyright (C) 2014 Pawel Chomicki

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Metadata

Release files for crunner 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for crunner 0.2.0
File Size Uploaded Provenance Actions
crunner-0.2.0.tar.gz 27.3 kB Without provenance Details for crunner-0.2.0.tar.gz

Release files / crunner-0.2.0.tar.gz

Download URL crunner-0.2.0.tar.gz
Size 27.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0eeb6eceacc1889a3490d9d860f286609ae5cd1fb5fb41c749c70af05d381375
BLAKE2b-256 checksum
How to use checksums
341f190ddd14b3bfe3283be6b2b54b10c1bf06fce01bb4b934a82e32b150289d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for crunner 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page