{"id":16288568,"url":"https://github.com/gediminasz/just-testing","last_synced_at":"2025-03-20T03:30:40.491Z","repository":{"id":34323451,"uuid":"177347679","full_name":"gediminasz/just-testing","owner":"gediminasz","description":"A Visual Studio Code extension for running tests in integrated terminal.","archived":false,"fork":false,"pushed_at":"2024-06-18T20:40:47.000Z","size":953,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T22:48:50.866Z","etag":null,"topics":["django","extension","javascript","jest","pytest","python","rspec","ruby","tdd","testing","visual-studio-code","vscode"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=gediminaszlatkus.just-testing","language":"JavaScript","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/gediminasz.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-03-23T22:45:21.000Z","updated_at":"2024-06-18T20:40:50.000Z","dependencies_parsed_at":"2023-01-16T22:45:48.784Z","dependency_job_id":"538b4f89-e74c-4171-8e88-91b0226aabab","html_url":"https://github.com/gediminasz/just-testing","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gediminasz%2Fjust-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gediminasz%2Fjust-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gediminasz%2Fjust-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gediminasz%2Fjust-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gediminasz","download_url":"https://codeload.github.com/gediminasz/just-testing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244047624,"owners_count":20389206,"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":["django","extension","javascript","jest","pytest","python","rspec","ruby","tdd","testing","visual-studio-code","vscode"],"created_at":"2024-10-10T19:48:43.603Z","updated_at":"2025-03-20T03:30:40.138Z","avatar_url":"https://github.com/gediminasz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Just Testing\n\nA Visual Studio Code extension for running tests in the integrated terminal.\n\nAvailable commands:\n\n- Run all tests\n- Run all tests in file\n- Run test on cursor\n- Run last command\n\nSupported languages and frameworks:\n\n- Python `pytest` (default)\n- Python `unittest`\n- Python Django\n- Python Nose\n- JavaScript Jest\n- Ruby RSpec\n\nHowever Just Testing is simple and flexible enough to make it work with pretty much anything that runs in terminal!\n\n## Configuration Examples\n\n### Python\n\n#### Poetry\n\n```\n\"justTesting.baseCommand\": \"poetry run python -m pytest\"\n```\n\n#### Pipenv\n\n```\n\"justTesting.baseCommand\": \"pipenv run python -m pytest\"\n```\n\n#### virtualenv\n\nPoint the base command to the `python` executable inside the virtualenv:\n\n```\n\"justTesting.baseCommand\": \"path/to/virtualenv/python -m pytest\"\n```\n\n#### unittest\n\n```\n\"justTesting.baseCommand\": \"python -m unittest\",\n\"justTesting.runOnCursorCommand\": \"{base} {fileName} -k {testName}\"\n```\n\n#### Django\n\n```\n\"justTesting.baseCommand\": \"python manage.py test\",\n\"justTesting.runFileCommand\": \"{base} {module}\",\n\"justTesting.runOnCursorCommand\": \"{base} {module}.{className}.{testName}\",\n\"justTesting.expressions\": {\n    \"className\": { \"regex\": \"class (.+TestCase)\\\\(\" }\n}\n```\n\n#### Nose\n\n```\n\"justTesting.baseCommand\": \"python -m nose\",\n\"justTesting.runOnCursorCommand\": \"{base} {fileName} -m {testName}\"\n```\n\n### JavaScript\n\n#### NPM\n\n```\n\"justTesting.baseCommand\": \"npm test\",\n\"justTesting.runFileCommand\": \"{base} -- {fileName}\",\n\"justTesting.runOnCursorCommand\": \"{base} -- {fileName} -t {testName}\",\n\"justTesting.runOnCursorRegex\": \"it\\\\((.+),\",\n```\n\n#### Jest\n\n```\n\"justTesting.baseCommand\": \"jest\",\n\"justTesting.runOnCursorRegex\": \"test\\\\((.+),\",\n\"justTesting.runOnCursorCommand\": \"{base} -t {testName}\"\n```\n\n### Ruby\n\n#### RSpec\n\n```\n\"justTesting.baseCommand\": \"rspec\",\n\"justTesting.runOnCursorCommand\": \"{base} {fileName}:{line}\"\n```\n\n## Settings\n\n| Setting                           | Description                                        | Default value                       |\n|-----------------------------------|----------------------------------------------------|-------------------------------------|\n| `justTesting.baseCommand`         | Base terminal command.                             | `\"python -m pytest -v\"`             |\n| `justTesting.runAllCommand`       | Terminal command for \"Run all tests\".              | `\"{base}\"`                          |\n| `justTesting.runFileCommand`      | Terminal command for \"Run all tests in file\".      | `\"{base} {fileName}\"`               |\n| `justTesting.runOnCursorRegex`    | Regular expression for matching closest test name. | `\"def (test_.+)\\\\(\"`                |\n| `justTesting.runOnCursorCommand`  | Terminal command for \"Run test on cursor\".         | `\"{base} {fileName} -k {testName}\"` |\n| `justTesting.expressions`         | Custom expressions for template variables          | `{}`                                |\n| `justTesting.contextMenusEnabled` | Should right click context menu actions be enabled | `true`                              |\n\nAll settings can be made specific for a language, so it's possible to have multiple configurations in a single project:\n\n```\n{\n    \"[javascript]\": {\n        \"justTesting.baseCommand\": \"jest\",\n        ...\n    },\n    \"[python]\": {\n        \"justTesting.baseCommand\": \"pytest\",\n        ...\n    }\n}\n```\n\n## Interpolation tags\n\n| Setting                          | Available interpolation tags                               |\n|----------------------------------|------------------------------------------------------------|\n| `justTesting.runAllCommand`      | `{base}`                                                   |\n| `justTesting.runFileCommand`     | `{base}`, `{fileName}`, `{module}`                         |\n| `justTesting.runOnCursorCommand` | `{base}`, `{fileName}`, `{module}`, `{testName}`, `{line}` |\n\n## Custom expressions\n\nThe `justTesting.expressions` setting may be used to capture extra values to be used in `justTesting.runOnCursorCommand`. For example:\n\n```\n\"justTesting.customExpressions\": {\n    \"className\": { \"regex\": \"class (.+TestCase)\\\\(\" }\n},\n\"justTesting.runOnCursorCommand\": \"{base} {module}.{className}.{testName}\"\n```\n\n## Keyboard Shortcuts\n\nJust Testing tries to be non intrusive so it does not come with predefined keyboard shortcuts. However VS Code allows users to set up their own custom keybindings. For example:\n\n```\n{\n    \"key\": \"ctrl+shift+r\",\n    \"command\": \"justTesting.runAll\"\n}\n```\n\nThe available commands are:\n\n- `justTesting.runAll`\n- `justTesting.runFile`\n- `justTesting.runOnCursor`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgediminasz%2Fjust-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgediminasz%2Fjust-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgediminasz%2Fjust-testing/lists"}