Hi Jonathon,
I've encountered the same issue and so far my solution has been to run
something like `lein ring server` on a terminal window while I run `lein test
cljs` on the other. Not ideal! I see two solutions to this:
1. Use Selenium through https://github.com/semperos/clj-webdriver and do
That's exactly what I was thinking - an alias to start the server first.
I'm at the same place, working on tests for React apps.
On Wed, Apr 8, 2015 at 9:59 AM Sebastian Bensusan sbe...@gmail.com wrote:
Hi Jonathon,
I've encountered the same issue and so far my solution has been to run
I currently use lein test aliases to run server-side tests and client-side
tests. But that currently means my client-side AJAX calls are either mocked or
just return fixture data.
How can I run client-side tests which will actually call a running instance of
the server to test live data?
--
Just to clarify, I don't think I want to mock those calls. I believe it
makes more sense to have the front-end call a running server back-end and
get real data. Can this be set up and executed from a test suite, short of
running a server in one console, and then the clojurescript test suite in
http://docs.closure-library.googlecode.com/git/class_goog_testing_net_XhrIo.html
There's a bunch of stuff under the goog.testing namespace.
David
On Tue, Apr 7, 2015 at 3:29 PM, Jonathon McKitrick jmckitr...@gmail.com
wrote:
I currently use lein test aliases to run server-side tests and
Ah sorry, I misread. Yeah nothing to suggest here other than staging
environments.
David
On Tue, Apr 7, 2015 at 4:23 PM, jmckitr...@gmail.com wrote:
Just to clarify, I don't think I want to mock those calls. I believe it
makes more sense to have the front-end call a running server back-end