Abadulrehman / frappe-test-runner

VSCode extension to run Frappe Tests

Home Page:https://marketplace.visualstudio.com/items?itemName=AnkushMenat.frappe-test-runner

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Frappe Test Runner

Extension in action

This extension lets you run tests from Frappe app using single command or keybind.

Supported ways to run tests:

  • Run all test in open file
  • Run test nearest to the cursor in open file

Setup

  • Configure frappeTestRunner.siteName in settings. This site will be used by bench to run tests on.
  • If your Workspace root directory is not the app directory, also configure frappeTestRunner.workspaceRoot accordingly:
    • bench: If your Workspace root directory is the same as the bench root directory
    • apps: If your Workspace root directory is the "apps" folder
    • single-app: Default. If your Workspace root directory is the app directory

Usage

  • Ctrl+shift+p > run nearest or run all.
  • Alternatively setup keyboard shortcuts from settings.

Note: keyboard shortcuts are not setup by default.

Vim user?

Checkout the vim plugin instead.

Credit

This is heavily inspired by Django Test Runner and reuses some code from it.

About

VSCode extension to run Frappe Tests

https://marketplace.visualstudio.com/items?itemName=AnkushMenat.frappe-test-runner


Languages

Language:TypeScript 100.0%