English 中文(简体)
完整堆叠测试 Javascript 单位
原标题:Javascript Unit Testing Full Stack

我们正在寻找一个 Javascript 测试框架, 它可以在整个应用程序堆、 客户端和服务器上进行测试。 我们正在对客户端使用 jQuery、 要求JS 和 Backbone. js 和 NOde. js, 并在服务器上表达 。

Node.js应该简化网络应用程序的创建,为客户端和服务器端开发提供更相似的设置,同时使用相同的语言(包括其它目标 ) 。 然而,我发现很难单位测试和提出一套对客户端和服务器有用的一致技术。

目前,我们正在使用QUI测试服务器上的客户端、Expresso和Should.js。它们有完全不同的界面,这使得很难测试客户和服务器共享的代码。 例如,一个进行验证的模块,客户和服务器都需要访问这个模块,同时需要对所有客户和服务器进行单位测试。

基本上,我正在寻找这个圣杯,它使我们能够以类似的方式开发网络应用程序,即客户-服务器应用程序是用Python和Ruby等语言开发的。

最佳回答

听起来你正在寻找类似“ a href” 的“ http://bluckerjs. org/” rel=“ nofollow” > BusterJS

env: "browser", // or "node"

这是迄今为止我最喜欢的选择 从所有可用的框架 现在。

问题回答

暂无回答




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签