Git Product home page Git Product logo

upbo's Introduction

upbo

โžฐ Emacs Javascript Test Runner integration that support mode line report!

Upbo is the Korean pronunciation of karma.

Features

Mode line reporting (upbo minor mode)

Success

SUCCESS

Failed

FAILED

Error

ERROR

And also terminal log view(upbo view mode)

TERMINAL

Installation

Using package.el

You can install upbo with package-install:

M-x package-install [RET] upbo [RET]

Or by add following code to emacs initialize file

(unless (package-installed-p 'upbo)
  (package-install 'upbo))

If the installation have problem try package-refresh-contents:

M-x package-refresh-contents [RET]

Using use-package

(use-package upbo
  :ensure t)

Getting Started

Upbo recognizes project in the current buffer based on the git root. You can apply project-specific test settings using the define-upbo-test function in your init.el If you have not set up the project, upbo will find the kama.conf.js in git root.

Upbo uses upbo-karma-command variable as karma-cli path. If upbo-karma-command is nil, then by default it looks for a karma executable in global, and if it does not find it, it tries to execute in the project using npx.

Enable upbo mode

To enable in major buffer automatically, add upbo-mode to your major buffer mode hook like this:

(add-hook javascript-mode-hook 'upbo-mode)
(add-hook js2-mode-hook 'upbo-mode)

define-upbo-test

(upbo-define-test
  :path "/path/to/your/project/git/root"
  :browsers "ChromeHeadless"
  :conf-file "/path/to/your/karma-conf/karma.conf.js")
  • path is project git root path
  • browsers uses as karma --browsers option, Currently we support one browser for mode line reporting. if you don't have set, Upbo uses the browsers option of the karma configuration.
  • conf-file is karma configuration to use in the project

Key Bindings

In Minor mode

Keybinding Description
C-c, C-u, s Execute karma single run.
C-c, C-u, w Execute karma with auto watch.
C-c, C-u, r Open project upbo process view, you need to run karma first.

In upbo view mode

Keybinding Description
s Execute karma single run.
w Execute karma with auto watch.
k Kill upbo process of current project.
q Close upbo view.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.