From 2c7ed46c00ce73bf3798b81b804b5ef0689729cc Mon Sep 17 00:00:00 2001 From: Dmitry Novotochinov Date: Thu, 16 Nov 2017 15:08:56 +0300 Subject: [PATCH 1/4] add print-foo-cljs 2.0.3 dependency --- project.clj | 1 + 1 file changed, 1 insertion(+) diff --git a/project.clj b/project.clj index bb68dfb..d132406 100644 --- a/project.clj +++ b/project.clj @@ -5,6 +5,7 @@ :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojurescript "1.9.227"] [camel-snake-kebab "0.4.0"] + [print-foo-cljs "2.0.3"] [cljsjs/web3 "0.19.0-0"]] :plugins [[lein-cljsbuild "1.1.4"]] From 0d5528359440c71fada7d207410e14b9b5d3ff19 Mon Sep 17 00:00:00 2001 From: Dmitry Novotochinov Date: Thu, 16 Nov 2017 15:09:08 +0300 Subject: [PATCH 2/4] add instructions on how to run tests --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 6b8bca1..4a82074 100644 --- a/README.md +++ b/README.md @@ -114,3 +114,9 @@ Docstrings for the methods and namespaces are adjusted to ClojureScript from the ## DAPPS using cljs-web3 * [emojillionaire](https://github.com/madvas/emojillionaire) * [ethlance](https://github.com/madvas/ethlance) + +## Testing + +1. Run figwheel `lein figwheel` +2. Open http://localhost:6612/ in the browser +3. Run `(cljs-web3.run-tests/run-all-tests)` inside cljs repl. From 34653c23015914cf8136dde235a87e5abb5683f7 Mon Sep 17 00:00:00 2001 From: Dmitry Novotochinov Date: Thu, 16 Nov 2017 15:16:04 +0300 Subject: [PATCH 3/4] update readme --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4a82074..25adf35 100644 --- a/README.md +++ b/README.md @@ -117,6 +117,7 @@ Docstrings for the methods and namespaces are adjusted to ClojureScript from the ## Testing -1. Run figwheel `lein figwheel` +1. Start figwheel `lein figwheel` 2. Open http://localhost:6612/ in the browser -3. Run `(cljs-web3.run-tests/run-all-tests)` inside cljs repl. +3. Run `testrpc -p 8549` (Install testrpc with `npm install -g ethereumjs-testrpc` https://github.com/ethereumjs/testrpc) +4. Run `(cljs-web3.run-tests/run-all-tests)` inside cljs repl. From 08a7045806564b6829b991f6cc77780b31217655 Mon Sep 17 00:00:00 2001 From: Dmitry Novotochinov Date: Thu, 16 Nov 2017 16:57:29 +0300 Subject: [PATCH 4/4] move to dev dependencies --- project.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project.clj b/project.clj index d132406..3dc7725 100644 --- a/project.clj +++ b/project.clj @@ -5,7 +5,6 @@ :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojurescript "1.9.227"] [camel-snake-kebab "0.4.0"] - [print-foo-cljs "2.0.3"] [cljsjs/web3 "0.19.0-0"]] :plugins [[lein-cljsbuild "1.1.4"]] @@ -21,6 +20,7 @@ [binaryage/devtools "0.8.1"] [com.cemerick/piggieback "0.2.1"] [figwheel-sidecar "0.5.13"] + [print-foo-cljs "2.0.3"] [org.clojure/tools.nrepl "0.2.11"]] :plugins [[lein-figwheel "0.5.13"]] :source-paths ["env/dev"]