问题
am I correct in thinking that nodeclipse does not yet provide unit test integration à la JUnit? I was hoping to be able to run tests individually, by script, by folder... but can't seem to find a way to do that.
Eric
回答1:
It is open issue #34 in the Noodeclipse project issue tracker, so no.
回答2:
As Node.js is using JavaScript, so you should actually search for JUnit-like integration for JavaScript.
And there are many unit testing framework for JavaScript,
and I don't know any mature Eclipse integration.
Quick search right now gives me
- https://github.com/wgroeneveld/jasmine-junit-runner
- JavaScript tests with JUnit
(source: benjiweber.co.uk)
I remember there were some others, but they all required tedious set-up work.
I don't know which project worth including into Nodeclipse.
You can help Nodeclipse by researching and giving more options here
or directly to #34
来源:https://stackoverflow.com/questions/27211677/is-there-any-unit-testing-integration-in-nodeclipse