{"id":15654077,"url":"https://github.com/oliyh/doo-chrome-devprotocol","last_synced_at":"2025-04-30T22:28:14.328Z","repository":{"id":62432492,"uuid":"138591641","full_name":"oliyh/doo-chrome-devprotocol","owner":"oliyh","description":"A runner for doo which runs tests in Chrome, using the Chrome Dev Protocol with no need for karma or npm.","archived":false,"fork":false,"pushed_at":"2020-01-13T17:29:30.000Z","size":165,"stargazers_count":27,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-30T20:34:09.830Z","etag":null,"topics":["chrome","chrome-headless","clojure","clojurescript","lein","leiningen","testing"],"latest_commit_sha":null,"homepage":"","language":"Clojure","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/oliyh.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}},"created_at":"2018-06-25T12:24:37.000Z","updated_at":"2021-03-01T20:54:30.000Z","dependencies_parsed_at":"2022-11-01T20:45:42.854Z","dependency_job_id":null,"html_url":"https://github.com/oliyh/doo-chrome-devprotocol","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliyh%2Fdoo-chrome-devprotocol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliyh%2Fdoo-chrome-devprotocol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliyh%2Fdoo-chrome-devprotocol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliyh%2Fdoo-chrome-devprotocol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oliyh","download_url":"https://codeload.github.com/oliyh/doo-chrome-devprotocol/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251791170,"owners_count":21644356,"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":["chrome","chrome-headless","clojure","clojurescript","lein","leiningen","testing"],"created_at":"2024-10-03T12:49:25.125Z","updated_at":"2025-04-30T22:28:14.304Z","avatar_url":"https://github.com/oliyh.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# doo-chrome-devprotocol\n\nA runner for [doo](https://github.com/bensu/doo) which runs tests in Chrome, using the Chrome Dev Protocol with no need for karma or npm.\n\n[![Clojars Project](https://img.shields.io/clojars/v/doo-chrome-devprotocol.svg)](https://clojars.org/doo-chrome-devprotocol)\n\n## Usage\n\n```clojure\n(require '[doo-chrome-devprotocol.core :as dc])\n\n(dc/run \"path/to/doo-tests.js\")\n\n;; =\u003e {:success? true\n       :report {:tests 2\n                :assertions 4\n                :failures 0\n                :errors 0}}\n```\n\n`run` also takes an optional map of options which should be self-explanatory\n\n```clojure\n{:port                  8899\n :chrome-path           \"/usr/bin/chromium\"\n :chrome-args           [\"--headless\"\n                         \"--disable-gpu\" ;; recommended on windows\n                        ]\n :chrome-launch-timeout 5000\n :doo-message-prefix    \"doo:\"\n :document-load-timeout 60000\n :doo-load-timeout      10000\n :doo-run-timeout       60000}\n```\n\n## Integration with clojure.test\n\n```clojure\n(ns my-project.runner\n  (:require [doo-chrome-devprotocol.core :as dc]\n            [clojure.test :refer [deftest is]]))\n\n(def doo-args\n  {:chrome-args [\"--headless\" \"--disable-gpu\" \"--no-sandbox\"]})\n\n(deftest cljs-tests\n  (let [result (dc/run \"out/unit-test.js\" doo-args)]\n    (is (:success? result) (:report result))))\n\n```\n\n## Development\n[![CircleCI](https://circleci.com/gh/oliyh/doo-chrome-devprotocol.svg?style=svg)](https://circleci.com/gh/oliyh/doo-chrome-devprotocol)\n\n## License\n\nCopyright © 2018 oliyh\n\nDistributed under the Eclipse Public License either version 1.0 or (at\nyour option) any later version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foliyh%2Fdoo-chrome-devprotocol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foliyh%2Fdoo-chrome-devprotocol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foliyh%2Fdoo-chrome-devprotocol/lists"}