All Projects → oliyh → doo-chrome-devprotocol

oliyh / doo-chrome-devprotocol

Licence: other
A runner for doo which runs tests in Chrome, using the Chrome Dev Protocol with no need for karma or npm.

Programming Languages

clojure
4091 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to doo-chrome-devprotocol

lein-nrepl
A simple Leininingen plugin to start nREPL 0.4+
Stars: ✭ 19 (-29.63%)
Mutual labels:  leiningen, lein
asciidoctor-lein-plugin
A Leiningen plugin for generating documentation using Asciidoctor
Stars: ✭ 26 (-3.7%)
Mutual labels:  leiningen, lein
test-refresh
Refreshes and reruns clojure.tests in your project.
Stars: ✭ 376 (+1292.59%)
Mutual labels:  leiningen
Lein Tools Deps
A leiningen plugin that lets you share tools.deps.alpha dependencies in your leiningen project
Stars: ✭ 149 (+451.85%)
Mutual labels:  leiningen
Lein Ring
Ring plugin for Leiningen
Stars: ✭ 485 (+1696.3%)
Mutual labels:  leiningen
nw-calculator
A crafting calculator for the New World game
Stars: ✭ 16 (-40.74%)
Mutual labels:  leiningen
Lein Fore Prob
A leiningen plugin to make a local copy of a problem from 4clojure
Stars: ✭ 13 (-51.85%)
Mutual labels:  leiningen
lein-nsorg
Leiningen plugin for organizing ns form
Stars: ✭ 46 (+70.37%)
Mutual labels:  leiningen
Jitpack.io
Documentation and issues of https://jitpack.io
Stars: ✭ 2,156 (+7885.19%)
Mutual labels:  leiningen
Lein template descjop
A Leiningen template(Clojure/ClojureScript Project) for Web based desktop application with Electron (atom-shell).
Stars: ✭ 394 (+1359.26%)
Mutual labels:  leiningen
Vizdeps
Visualize Leiningen dependencies using Graphviz
Stars: ✭ 131 (+385.19%)
Mutual labels:  leiningen
Lein Test Refresh
Refreshes and reruns clojure.tests in your project.
Stars: ✭ 353 (+1207.41%)
Mutual labels:  leiningen
Lein Plantuml
A Leiningen plugin for generating UML diagrams using PlantUML
Stars: ✭ 43 (+59.26%)
Mutual labels:  leiningen
sass4clj
SASS compiler for Clj, Lein and Boot, using Libsass Java wrapper
Stars: ✭ 70 (+159.26%)
Mutual labels:  leiningen
Antq
Point out your outdated dependencies.
Stars: ✭ 157 (+481.48%)
Mutual labels:  leiningen
clojure-dependency-update-action
A simple GitHub Actions job to create Pull Requests for outdated dependencies in clojure projects
Stars: ✭ 37 (+37.04%)
Mutual labels:  leiningen
Cljs Lambda
Utilities around deploying Clojurescript functions to AWS Lambda
Stars: ✭ 304 (+1025.93%)
Mutual labels:  leiningen
Cljfmt
A tool for formatting Clojure code
Stars: ✭ 859 (+3081.48%)
Mutual labels:  leiningen
Lein Native Image
A Leiningen plugin to build GraalVM native images
Stars: ✭ 216 (+700%)
Mutual labels:  leiningen
Reagent Figwheel
Leiningen template for Reagent applications in Clojurescript with Figwheel. Optionally includes secretary, cljs.test, garden, less, cider, devcards, cljs-devtools, re-risk
Stars: ✭ 161 (+496.3%)
Mutual labels:  leiningen

doo-chrome-devprotocol

A runner for doo which runs tests in Chrome, using the Chrome Dev Protocol with no need for karma or npm.

Clojars Project

Usage

(require '[doo-chrome-devprotocol.core :as dc])

(dc/run "path/to/doo-tests.js")

;; => {:success? true
       :report {:tests 2
                :assertions 4
                :failures 0
                :errors 0}}

run also takes an optional map of options which should be self-explanatory

{:port                  8899
 :chrome-path           "/usr/bin/chromium"
 :chrome-args           ["--headless"
                         "--disable-gpu" ;; recommended on windows
                        ]
 :chrome-launch-timeout 5000
 :doo-message-prefix    "doo:"
 :document-load-timeout 60000
 :doo-load-timeout      10000
 :doo-run-timeout       60000}

Integration with clojure.test

(ns my-project.runner
  (:require [doo-chrome-devprotocol.core :as dc]
            [clojure.test :refer [deftest is]]))

(def doo-args
  {:chrome-args ["--headless" "--disable-gpu" "--no-sandbox"]})

(deftest cljs-tests
  (let [result (dc/run "out/unit-test.js" doo-args)]
    (is (:success? result) (:report result))))

Development

CircleCI

License

Copyright © 2018 oliyh

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].