{"id":20033175,"url":"https://github.com/dbr/pyautotest","last_synced_at":"2025-10-14T05:32:25.632Z","repository":{"id":66406543,"uuid":"642379","full_name":"dbr/pyautotest","owner":"dbr","description":"Quick notifications of unitest failures, like ZenTest for Python [Not actively maintained]","archived":false,"fork":false,"pushed_at":"2015-09-30T19:13:13.000Z","size":135,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-30T03:41:33.031Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dbr.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-05-02T10:37:32.000Z","updated_at":"2019-09-18T01:46:06.000Z","dependencies_parsed_at":"2023-03-09T14:15:15.441Z","dependency_job_id":null,"html_url":"https://github.com/dbr/pyautotest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dbr/pyautotest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbr%2Fpyautotest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbr%2Fpyautotest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbr%2Fpyautotest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbr%2Fpyautotest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dbr","download_url":"https://codeload.github.com/dbr/pyautotest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbr%2Fpyautotest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018011,"owners_count":26086235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T09:44:48.940Z","updated_at":"2025-10-14T05:32:25.597Z","avatar_url":"https://github.com/dbr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":" pyAutotest\n===================================\n Quick notifications of unitest failures\n--------------------------------------\n\nAuthor: dbr\nHomepage: [GitHub][gh]\n\nDescription: Quick notifications of unittest failures\n\nIntroduction\n============\n\nInspired by ZenTest's autotest tool (and by inspired I mean \"completely stolen\").\n\nWhy? Growl notifications as you fix tests, or as they fail.\n\nIt's very simple.. `pyautotest` locates all the unittests in a file/directory that you specify, then whenever a file is modified, the tests are run.\nIf something fails for the first time, the `failure` callback (a simple Python function) is executed, same when a test passes again.\n\nInstalling\n===========\n\nYou can see (or easily contribute to) the code on [GitHub][gh]\n\nYou can checkout the latest development version from GitHub with the following command:\n\n    git clone git://github.com/dbr/pyautotest.git\n\nThe easiest way to install pyautotest is to grab it from the [Cheeseshop][cs]. This means that if you have setuptools you can simply run:\n\n    easy_install pyautotest\n\n..and the `pyautotest` command will be available!\n\n\nGetting Started\n===============\n\nSimply `pyautotest` in your python projects directory.\n\nIf you're on OS X, and have the growlnotify command (it's in the [Growl][gwl] Extras on the DMG)\n\nIf you're not on OS X, or don't have Growl/growlnotify installed, it'll probably break.. So you must change the functions `cb_break` and `cb_fixed`...\n\nCustom callbacks\n================\n\nEach function takes two arguments, `status_name` and `change`:\n\n- `status_name` is either \"failure\", \"error\" (in `cb_fixed` this indicates the kind of problem that was fixed)\n- `change` is a dict containing two keys, `traceback` (a string version of the traceback) and `name` (the name of the problem test)\n\nThe simplest possible callback would contain a couple of print statements:\n\n    def cb_break(status_name, change):\n        print \"Test %s\" % (status_name)\n        print \"%s\\n\\n%s\" % (\n            change['name'],\n            change['traceback']\n        )\n        print \"-\" * 78\n\n    def cb_fixed(status_name, change):\n        print \"Fixed %s\" % (status_name)\n        print \"%s\" % (\n            change['name']\n        )\n        print \"-\" * 78\n\n\nFuture\n======\n\nThings I want to try, or improve:\n\n- The callback system, perhaps the abilty to have a ~/.pyautotest file containing your callbacks\n- More built-in callbacks\n- Try to use the code from `revtrace.py` to intelligently determine which unittests need to be run when a file is modified (instead of testing all)\n\n[gh]: http://github.com/dbr/pyautotest/\n[cs]: http://pypi.python.org/pypi/pyautotest/\n[gwl]: http://growl.info","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbr%2Fpyautotest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdbr%2Fpyautotest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbr%2Fpyautotest/lists"}