Looks like the URL got garbled.  Plain text:

https://github.com/cloojure/cljs-template.git


On Tue, Mar 19, 2019 at 8:16 PM Alan Thompson <clooj...@gmail.com> wrote:

> Hi - Here is a template project that I've developed to showcase CLJS
> testing and JS interop & testing.  Just clone this repo:
>
> https://github.com/cloojure/cljs-template.git
>
>
>
> and follow the README to set up cljs tests (`lein test` for CLJ will work
> out of the box).
>
> It is based on the original figwheel (plans to upgrade to figwheel-main
> are in the works).
>
> Alan
>
>
> On Tue, Mar 19, 2019 at 8:23 AM Paul Whittington <pwhit...@gmail.com>
> wrote:
>
>> I'm trying to follow the instructions here
>> https://figwheel.org/docs/testing.html#running-tests-in-a-headless-environment,
>> but the command line test execution never terminates.
>>
>> I've executed the following procedure:
>>
>> *Development environment*
>>
>>    - LinuxMint 19.1
>>    - BASH
>>    - openjdk version "11.0.1" 2018-10-16
>>    - OpenJDK Runtime Environment (build
>>    11.0.1+13-Ubuntu-3ubuntu118.04ppa1)
>>    - OpenJDK 64-Bit Server VM (build 11.0.1+13-Ubuntu-3ubuntu118.04ppa1,
>>    mixed mode, sharing)
>>    - Clojure 1.9.0
>>    - ClojureScript 1.10.339
>>    - figwheel-main 0.1.9
>>
>> *Development Process*
>> *Create a figwheel-main project by executing this command:*
>> => clj -Sdeps '{:deps {seancorfield/clj-new {:mvn/version "0.5.5"}}}'
>> -m clj-new.create
>> figwheel-main
>> fsclj.core
>>
>> *Enter the fsclj.core directory*
>> => cd fsclj.core
>>
>> *Execute the unit tests from the command line:*
>> => clj -A:fig:test
>>
>> [Figwheel] Validating figwheel-main.edn
>> [Figwheel] figwheel-main.edn is valid (ツ)/
>> [Figwheel] Compiling build test to "target/public/cljs-out/test-main.js"
>> [Figwheel] Successfully compiled build test to
>> "target/public/cljs-out/test-main.js" in 1.147 seconds.
>> 2019-03-15 11:13:56.627:INFO::main: Logging initialized @10504ms
>> Opening URL http://localhost:9500/test.html
>>
>> Testing fsclj.core-test
>>
>> Ran 2 tests containing 2 assertions.
>> 0 failures, 0 errors.
>> :figwheel.main.testing/success
>>
>> *Find path to google-chrome:*
>> => which google-chrome
>>
>> /usr/bin/google-chrome
>>
>> *Modify 'test.cljs.edn' to use Chrome headless by uncommenting the
>> ':launch-js' line and changing it.*
>> => cat test.cljs.edn
>>
>> ^{
>> ;; use an alternative landing page for the tests so that we don't
>> ;; launch the application
>> :open-url "http://[[server-hostname]]:[[server-port]]/test.html";
>>
>> ;; uncomment to launch tests in a headless environment
>> ;; you will have to figure out the path to chrome on your system
>> :launch-js ["/usr/bin/google-chrome" "--headless" "--disable-gpu"
>> "--repl" :open-url]
>> }
>> {:main fsclj.test-runner}
>>
>> *Execute the unit tests from the command line again:*
>> => clj -A:fig:test
>>
>> [Figwheel] Validating figwheel-main.edn
>> [Figwheel] figwheel-main.edn is valid (ツ)/
>> [Figwheel] Compiling build test to "target/public/cljs-out/test-main.js"
>> [Figwheel] Successfully compiled build test to
>> "target/public/cljs-out/test-main.js" in 2.06 seconds.
>> 2019-03-15 13:16:16.381:INFO::main: Logging initialized @11033ms
>> Launching Javascript environment with script: ["/usr/bin/google-chrome"
>> "--headless" "--disable-gpu" "--repl" :open-url]
>> Environment output being logged to:
>> target/public/cljs-out/test/js-environment.log
>>
>> *The above output is generated, but the program never terminates*
>>
>> The js-environment.log file contains:
>>
>> /131437.958265:INFO:headless_shell.cc(370)] Type a Javascript expression
>> to evaluate or "quit" to exit.
>>
>> --
>> Note that posts from new members are moderated - please be patient with
>> your first post.
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "ClojureScript" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to clojurescript+unsubscr...@googlegroups.com.
>> To post to this group, send email to clojurescript@googlegroups.com.
>> Visit this group at https://groups.google.com/group/clojurescript.
>>
>

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.

Reply via email to