{"id":19044365,"url":"https://github.com/tilt-dev/wat","last_synced_at":"2025-08-05T04:19:13.310Z","repository":{"id":64303966,"uuid":"137532650","full_name":"tilt-dev/wat","owner":"tilt-dev","description":"Win At Testing","archived":false,"fork":false,"pushed_at":"2018-06-26T17:53:42.000Z","size":11038,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-02T08:14:52.096Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tilt-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-15T21:16:54.000Z","updated_at":"2019-10-29T07:59:29.000Z","dependencies_parsed_at":"2023-01-15T10:00:53.953Z","dependency_job_id":null,"html_url":"https://github.com/tilt-dev/wat","commit_stats":null,"previous_names":["windmilleng/wat"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilt-dev%2Fwat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilt-dev%2Fwat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilt-dev%2Fwat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilt-dev%2Fwat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tilt-dev","download_url":"https://codeload.github.com/tilt-dev/wat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240100558,"owners_count":19747689,"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","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-08T22:46:06.637Z","updated_at":"2025-02-21T23:18:35.768Z","avatar_url":"https://github.com/tilt-dev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Win At Testing with WAT!\n\n[![Build Status](https://circleci.com/gh/windmilleng/wat/tree/master.svg?style=shield)](https://circleci.com/gh/windmilleng/wat)\n\nEver experienced brain freeze when you can’t quite come up with the right test\nincantation?\n\nDo you use your IDE to run tests because you can’t be bothered to put together\nthe regexp for the one test you care about?\n\nHave you ever been stuck waiting on a slow test, and wondered if there was a\nfaster test that you could be running instead?\n\nWhen we get frustrated at these moments, we think: `wat`.\n\n## What does it do?\n\n`wat` looks at:\n\n- how long each test takes\n- how often each test fails\n- what files you’ve recently edited\n\nand runs the tests most likely to fail Right Now.\n\nThe more you use it, the more it will learn about which test gives fast,\nuseful feedback on what you’re working on.\n\n## Installation\n\nIf you have Go installed, it's easy to install `wat` from source:\n\n```\ngo get -u github.com/windmilleng/wat/cmd/wat\n```\n\nIf you don't have Go installed, we may have a precompiled binary for you on the [releases page](https://github.com/windmilleng/wat/releases).\n\n## Usage\n\nFrom the root of your project, run\n\n```\nwat\n```\n\nThe first time you run `wat`, it will:\n\n1) detect the test commands you might want to run, then\n2) make random changes to your codebase then run the test to see what breaks\n\n`wat` will train itself until you interrupt it by pressing `[Enter]` or `[Esc]`.\n\nThen (and every subsequent run), `wat` will suggest some tests and run them for you. (To see the suggested commands without auto-running them, use `--dry-run`.)\n\nHere's an example of output you might see:\n\n```\n$ wat\nBeginning training...type \u003cEnter\u003e or \u003cEsc\u003e to interrupt\nRunning all tests in the current workspace\n 37 / 37 [==========================================================================] 100.00% 12s\n\nFuzzing \"cli/wat/wat.go\" and running all tests\n 24 / 37 [=======================================================\u003e------------------] 66.22% 8s\n\nWAT will run the following commands:\n\tgo test github.com/windmilleng/wat/data/db/dbpath\n\tgo test github.com/windmilleng/wat/os/sysctl\n\tgo test github.com/windmilleng/wat/cli/dirs\n--------------------\n$ go test github.com/windmilleng/wat/data/db/dbpath\nok  \tgithub.com/windmilleng/wat/data/db/dbpath\n--------------------\n$ go test github.com/windmilleng/wat/os/sysctl\nok  \tgithub.com/windmilleng/wat/os/sysctl\t\n--------------------\n$ go test github.com/windmilleng/wat/cli/dirs\nok  \tgithub.com/windmilleng/wat/cli/dirs\t\n```\n\nYou can also explicitly kick off training with:\n```\nwat train\n```\n\n## Supported Languages\n\n`wat` supports:\n\n- Go\n- JavaScript (with package.json)\n- Python (with `pytest`)\n\nWe welcome contributions to add more language detection!\n\n\n## Privacy\n\nThis tool can send usage reports to https://events.windmill.build, to help us\nunderstand what features people use. We only report on which `wat` commands\nrun and how long they run for.\n\nYou can enable usage reports by running\n\n```\nwat analytics opt in\n```\n\n(and disable them by running `wat analytics opt out`.)\n\nWe do not report any personally identifiable information. We do not report any\nidentifiable data about your code.\n\nWe do not share this data with anyone who is not an employee of Windmill\nEngineering.  Data may be sent to third-party service providers like Datadog,\nbut only to help us analyze the data.\n\n## License\nCopyright 2018 Windmill Engineering\n\nLicensed under [the Apache License, Version 2.0](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftilt-dev%2Fwat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftilt-dev%2Fwat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftilt-dev%2Fwat/lists"}