English 中文(简体)
How to TDD for CouchDB with CouchApp?
原标题:

Recently I ve discovered CouchDB. I want to use CouchApp to build a flash games site. It looks like a perfect fit cause this kind of a site is totally document based with a bit of binary attachments.

The only thing I need to learn before I start is how to TDD with CouchApp/CouchDB. I couldn t google any workflow tutorial and I m not experienced enough to adapt any existing server-side JS workflow to the CouchDB environment.

Your suggestions?

最佳回答

I looked at this and found jsunit and Jasmine.

I settled on jsunit for familiarity and because I had a book with some examples in it (yeah, I know a real scientific decision process).

I got what I wanted out of it, but an not entirely happy about the way of working in a browser as a test runner. I need to look at some ways to automate it in my build process.

问题回答

暂无回答




相关问题
Separating rapid development from refactoring/optimization

I m working in a team of 2 front-end developers on a web-based late-stage startup project. The site works quite well, but there s a lot of room for improvement code-wise, as the code is quite messy ...

Test-driven development with ASP.NET MVC - where to begin?

I ve read a lot about Test-Driven Development (TDD) and I find the principles very compelling, based on personal experience. At the moment I m developing a website for a start-up project I m involved ...

Silencing Factory Girl logging

Just to clear the air, I am not some cruel factory master trying to silence working ladies. I am having a very annoying problem where when using Thoughtbot s factory girl in my specs, every time ...

TDD vs. Unit testing [closed]

My company is fairly new to unit testing our code. I ve been reading about TDD and unit testing for some time and am convinced of their value. I ve attempted to convince our team that TDD is worth ...

unit test a method that creates an object

I m trying to get my head round Unit Testing and there s one more piece of the jigsaw I need to find. What I m trying to do is write tests for the following code. In this case, I ve got a really ...

Testing private method of an abstract class using Reflection

How can I test a private method of an abstract class using reflection (using C#)? I am specifically interested in adapting the code found in this thread. I am aware of the discussion around the ...

C#: How would you unit test GetHashCode?

Testing the Equals method is pretty much straight forward (as far as I know). But how on earth do you test the GetHashCode method?

热门标签