What tools your recommend to debug and test AngularJS + RESTFul API?

554 views
Skip to first unread message

gsc-frank

unread,
Jan 16, 2013, 12:47:05 AM1/16/13
to ang...@googlegroups.com
Hi all,

I'm developing an application using AngularJS and as backend a RESTFul API created by myself in CodeIgniter. What kind of tools do you recommend to test and debug AngularJS part and the RESTFul API?

I know that exist lot of tools out there to debug JavaScript and test RESTFul APIs, but what I want is to hear what tools AngularJS hackers ;) are using, take note of them, do some research and pick the tool set that I like more. I'm not asking for the best tool set, I just want peoples with months/years developing in AngularJS with RESTFul backend share theirs thoughts regards tooling so new comers like me get a good start for theirs own research.

Thanks in advanced.
Frank

Kevin Purnelle

unread,
Jan 16, 2013, 9:32:53 AM1/16/13
to ang...@googlegroups.com
Hello,

For angularjs specific tool, I have been using angularjs batarang.
It's a plugin for google chrome. 

gsc-frank

unread,
Jan 16, 2013, 5:27:40 PM1/16/13
to ang...@googlegroups.com
Thanks, I will install it.

What about RESTFul API, worth give a try to any of the Chrome extensions or http://code.google.com/p/rest-client/ ?

I know that the RESTFul part could be seem as a little of off-topic, but I want know the AngularJS users view of point, cos may be the tool to select is related (integrated, etc.) to the fact that the API will be consumed by AngularJS and with other AngularJS tool selection. For example, the fact that exist angularjs batarang could be adding value to any of the Chrome plugin.

Thanks again.
Frank

Joshua Miller

unread,
Jan 16, 2013, 5:39:33 PM1/16/13
to angular
Hello!

I prefer automated testing. When we develop a REST API, the testing is done using the automated testing frameworks of that particular language. Recently, we've used ExpressJS and Play!, both of which are easy to test using associated tools. The thinking is this: if you have a defined API, then your tests on the client and server should be independent, working off the same definition. I don't think there's any reason to consider AngularJS in your REST API testing at all.

For client-side testing, I prefer Testacular as it works very well with AngularJS. Angular contains a special module (`ngMockE2E`) that allows us to completely mock up expected responses from our REST API for automated, independent testing.

Josh


--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular?hl=en-US.
 
 

Frank Cancio

unread,
Jan 16, 2013, 5:56:02 PM1/16/13
to ang...@googlegroups.com
Thanks a lot, very useful reply.

I was referring more to a kind of "debugging testing" in witch one want see more what is happening to determine what is wrong, than "a formal/coded tests" in witch one usually want just know if the things are right or not.

Anyway, very useful reply cos I need test my applications in the way you describe too beside I could  coding my tests in a more verbose way in case that I want know what is going on with a test fail.

Cheers
Frank

Joshua Miller

unread,
Jan 17, 2013, 12:35:28 AM1/17/13
to angular
Oh, I see. Well, when I'm just playing around, Chrome Developer Tools or Firebug with a little curl goes a long way. :-)

Josh
Reply all
Reply to author
Forward
0 new messages