As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
What is the recommended way of unit testing javascript and jQuery?
What frameworks?
Does the framework
integrate with build tools? (CI,
maven and such)
Please share your experiences in this field.
I'm using this: jQuery QUnit
jQuery unit testing library
Samples for QUnit
Manual to start
Maven plugin
Also, can check this solution (found in my bookmarks): js-test-driver
You might have heard of JsUnit. That's what I've used in the past.
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I was told github has concatenation tool, rather I heard this at a tech event.
So if I have
file1.js
file2.js
...
It will concatenate them into
file_all.js
Is there a web interface for this? ( at www.github.com )
I want to be efficient and not copy paste this by hand.
I don't need anything complicated, just something that will do this automatically.
Use grunt. It has become an extremely popular tool. It may take a little while for you to set it up but it was designed to automate tasks such as uglifying (concatenating and minifying JS files).
You want to automate your workflow? Go with maven and this package of tools for JS developers http://mojo.codehaus.org/javascript-maven-tools/
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I would like to allow powerusers to perform certain actions on the site in a command-line like interface (think Quake console that slides in from above ;-). Is there a library that already implements the basics of what I need in the browser? Tasks like getting the input from the user, command history etc. Me and my colleagues will have limited time to implement this during a hackathon, so we want to have as much time as possible to implement the actual commands interfacing with our app.
Have a look at Josh.js for a bash-like environment in the browser:
http://sdether.github.com/josh.js/
Of course there is also the excellent termlib found here.
You may find this project helpful:
https://github.com/chjj/tty.js
Have a look at JavaScript shells from mozilla.org
See also Jash: JavaScript Shell
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
What are some of the secure/reliable crypto libraries for JavaScript? For those who have used it, what are your opinion about them? Thanks.
Google Closure
Used Google's closure library quite successfully for a while
https://developers.google.com/closure/library/
Specific crypt documentation here
http://closure-library.googlecode.com/svn/docs/namespace_goog_crypt.html
phpjs.org
Occasionally for simpler tasks I have also used self-contained functions such as md5 or sha1 from phpjs.org
crypto-js
Although never used personally, I heard very good things about this library
http://code.google.com/p/crypto-js/
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
We have been using jasmine for a while now. We have written specs for about 20% code. Most of our code is tightly coupled with DOM elements which makes it extremely difficult to test. Now we would like to re-factor our code and make it testable with jasmine.
So my question is: Which JavaScript pattern has got an edge in terms of testing (jasmine) ease and why?
Update: I did some research and found couple of useful tips:
Private Methods and Properties are difficult to test, so avoid if testing is preference.
JQuery Chaining: Again chaining is recommended for performance but excessive use will not be recommended for unit test.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I'm building a stress testing framework for node.js services using node.js.
Do you know relevant projects which I can use / look at?
node.js projects that you've used and worked good? (latency, throughput etc..)
Any best practices on that matter?
Thanks!