Node.js的编程工作流程 - 测试,code,测试 [英] Node.js programming workflow - Tests, Code, Tests

查看:121
本文介绍了Node.js的编程工作流程 - 测试,code,测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您开始开发的东西非常有用的Node.js之前,你叫什么过程?你创建VowJS,防爆preSSO测试?你使用Selenium测试?当?

Before you start developing something useful in Node.js, what's your process? Do you create tests on VowJS, Expresso? Do you use Selenium tests? When?

我感兴趣的是获得一个很好的工作流程来开发类似于Rails的所有我的Node.js应用程序(黄瓜,Rspec的,code)。

I'm interested in gaining a nice workflow to develop all my node.js applications similar to Rails (Cucumber, Rspec, Code).

抱歉的题量。

让我知道它是如何工作和你在一起。

Let me know how it works out with you.

推荐答案

我的测试方法是达不到的鼻烟作为例如的Java / JUnit和我真的应该努力更多关于这个(改善)。我真的应该在实践TDD多。

My testing methodology isn't up the snuff as in for example Java/Junit and I should really work more on this(improve). I should really practice TDD more.

我打得有点与前preSSO,喜欢的事实,你可以生成code覆盖报告。我认为是缺少的是像 @Before @BeforeClass @After ,你可以在java中找到。

I played a little bit with expresso and liked to the fact that you could generate code coverage reports. What I thought was missing was something like @before @beforeclass @after which you can find in java.

我也起了一点与nodeunit里面确实有安装/拆卸。我还是喜欢玩多一点点这个框架。

I also played a bit with nodeunit which does have setup/teardown. I still like to play a little bit more with this framework.

我不喜欢vowjs语法,但它是非常流行的BDD框架,所以也许我应该使用它(更多)得到卖给像很多其他的用户。但是现在我要解雇vowjs。

I don't like the vowjs syntax, but it is very popular BDD framework, so maybe I should use it (more) to get sold like a lot of other users. But for now I am going to dismiss vowjs.

我也zombie.js起了痘痘位,也是pretty凉爽。我也看到了最近另一个很酷的测试框架,我可以不记得名字,但也有幸运的是选择做在Node.js的测试。

I also played with zombie.js a litle bit which is also pretty cool. I also lately saw another cool testing framework which I can't remember the name, but there are luckily enough options to do testing in node.js.

我不喜欢的唯一的事情是,与IDE整合不起来在我看来,断气。我对Java的IDE无法与我已经找到了node.js的比较,但我觉得有一点点的努力,我可以做一个更有用的编程环境。我会尽力保持你们了解这一进展。

The only thing I don't like is that the integration with IDE is not up to snuff in my opinion. The IDE I had for Java cannot be compared with what I have found for node.js, but I think with a little bit effort I can make a more useful programming environment. I will try and keep you guys informed about this progress.

P.S:但我不喜欢有很多是故宫包管理器。当你把它比作例如行家你刚才说哇。我仍然有一些小的错误,因为它仍然是一个年轻的项目。不过还是NPM是非常好的,我的意见!

P.S: But what I do like a lot is the npm package manager. When you compare it to for example maven you just say wow. I still has some minor bugs because it is still a young project. But still npm is very good in my opinion!

这篇关于Node.js的编程工作流程 - 测试,code,测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆