{"id":15391976,"url":"https://github.com/dhleong/vim-latte","last_synced_at":"2026-05-14T21:02:12.373Z","repository":{"id":142683083,"uuid":"86261231","full_name":"dhleong/vim-latte","owner":"dhleong","description":"A pleasant companion for unit testing","archived":false,"fork":false,"pushed_at":"2021-10-31T14:15:04.000Z","size":41,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T23:28:53.392Z","etag":null,"topics":["mocha","pytest","unit-testing","vim"],"latest_commit_sha":null,"homepage":null,"language":"Vim script","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/dhleong.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-26T20:03:31.000Z","updated_at":"2024-11-28T01:05:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"8b3958fc-30ab-4b2c-a117-5781260fea49","html_url":"https://github.com/dhleong/vim-latte","commit_stats":{"total_commits":50,"total_committers":1,"mean_commits":50.0,"dds":0.0,"last_synced_commit":"ec3b258af92c0f48fc0bff0d8385d01126447467"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dhleong/vim-latte","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhleong%2Fvim-latte","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhleong%2Fvim-latte/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhleong%2Fvim-latte/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhleong%2Fvim-latte/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dhleong","download_url":"https://codeload.github.com/dhleong/vim-latte/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhleong%2Fvim-latte/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33043249,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"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":["mocha","pytest","unit-testing","vim"],"created_at":"2024-10-01T15:13:39.861Z","updated_at":"2026-05-14T21:02:12.329Z","avatar_url":"https://github.com/dhleong.png","language":"Vim script","funding_links":[],"categories":[],"sub_categories":[],"readme":"vim-latte\n=========\n\n*A pleasant companion for unit testing*\n\n## What\n\nvim-latte is an asynchronous unit test runner for Vim. It is designed to keep you\nget out of your way when everything is fine, and do the helpful things you'd expect\nwhen it isn't.\n\nIf all the tests for a file pass, vim-latte will echo a nice \"All tests passed\"\nmessage in green in your status line. If there were errors, vim-latte will fill\nthe location list with the locations, hop to the first one, and open a preview\nwindow with any relevant output.\n\nCurrently, vim-latte has support for:\n\n- Go ([go test](https://golang.org/cmd/go/#hdr-Test_packages))\n- Javascript ([mocha](https://mochajs.org/))\n- Python ([py.test](http://pytest.org))\n- Typescript ([mocha](https://mochajs.org/))\n\n## How\n\nInstall with your favorite plugin manager. I like [Plug](https://github.com/junegunn/vim-plug)\n\n```vim\nPlug 'dhleong/vim-latte'\n```\n\nThen, just invoke using `:call latte#Run()`.\n\nvim-latte doesn't provide any mappings or autocmds by default, because everybody\ndoes things differently. Here's my autocmd for javascript (in an ftplugin):\n\n```vim\nif expand('%') =~# '-test.js$'\n    augroup RunLatte\n        autocmd!\n        autocmd BufWritePost \u003cbuffer\u003e :call latte#Run()\n    augroup END\nelse\n    augroup TryRunLatte\n        autocmd!\n        autocmd BufWritePost \u003cbuffer\u003e :call latte#TryRun()\n    augroup END\nendif\n```\n\nThis will automatically run the test whenever I save the test file. The\n`latte#TryRun()` function will try to find a previously-executed test window\nin the current tabpage and run that, so I can see the results of changes to\na relevant file as soon as I save it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhleong%2Fvim-latte","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdhleong%2Fvim-latte","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhleong%2Fvim-latte/lists"}