You don't have to use anything from the frontend part ;) Rails is great for constructing the REST API. At one of my projects I have the backend (Rails) even in it's own repository. So the frontend guys just check it out and run the tests. With rspec even non ruby developers where able to write the tests within minutes. But you can try to clean the database in a generic solution for any backend. If you find any useful sulution please tell me ;)
Am Sonntag, 4. Januar 2015 10:46:20 UTC+1 schrieb Guirec Corbel: > > I don't like to use Rails because I think the frontend and the backend > should be independent. My angular app have to consume a Rest API but I > don't care where the data come from. Furthermore, I have to have an > open-source application. I don't want to force the contributor to install > Rails to develop a JS app. > > Le 2015-01-04 00:30, Anton Trapp a écrit : > > After a lot of problems I am using rspec/capybara (and database cleaner) > for the Angular e2e tests. So I can use FactoryGirl for my test data, > authentication helpers, ... - and everything is working perfect without any > troubles. I don't like testing only two different things (API and frontend > only with mocked API) seperate - always missing some bugs in such > scenarios. Can use this for load tests too. So why don't you use Capybara > only because you are using a different frontend framework? > > Am Samstag, 3. Januar 2015 13:01:00 UTC+1 schrieb Guirec Corbel: >> >> Hi, >> >> I'm a Ruby/Rails programmer and I usually do acceptance specs with >> Capybara and DatabaseCleaner. After each spec, the database is deleted and >> clean again. I'm looking to do the same think with Angular. Is it possible >> to have something like that with e2e tests? Is it preferable to mock the >> server? What can I do? >> >> Thanks for your help! >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "AngularJS" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/angular/i_RFooLy7E4/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected] <javascript:>. > To post to this group, send email to [email protected] <javascript:> > . > Visit this group at http://groups.google.com/group/angular. > For more options, visit https://groups.google.com/d/optout. > > > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
