Re: [ClojureScript] How to run integration tests for client/server interaction

2015-04-08 Thread Sebastian Bensusan
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

Re: [ClojureScript] How to run integration tests for client/server interaction

2015-04-08 Thread jmckitrick
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

[ClojureScript] How to run integration tests for client/server interaction

2015-04-07 Thread Jonathon McKitrick
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? --

Re: [ClojureScript] How to run integration tests for client/server interaction

2015-04-07 Thread jmckitrick
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

Re: [ClojureScript] How to run integration tests for client/server interaction

2015-04-07 Thread David Nolen
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

Re: [ClojureScript] How to run integration tests for client/server interaction

2015-04-07 Thread David Nolen
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