Permalink
Browse files

don't show full exception traces when not in --test mode

  • Loading branch information...
1 parent b4dadc2 commit bc97167a31b4f8ba06d794a171dffe4aa675a3ae @tmpvar committed Oct 9, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/runner.js
  2. +1 −1 package.json
View
2 lib/runner.js
@@ -128,7 +128,7 @@ exports.run = function(testSuites) {
for (var i = 0; i<errors.length; i++)
{
sys.puts('\nFailure in ' + errors[i].suiteName + ' suite; method: ' + errors[i].method);
- if (errors[i] && errors[i].error) {
+ if (args.test && errors[i] && errors[i].error) {
sys.puts(errors[i].error.stack || errors[i].error.message);
}
}
View
2 package.json
@@ -1,5 +1,5 @@
{ "name" : "mjsunit.runner"
-, "version" : "0.1.1"
+, "version" : "0.1.2"
, "description" : "Command line mjsunit runner which provides an easy way to hook into mjsunit and start running tests immediately.."
, "keywords" : [ "testing", "test", "runner", "unit testing", "command line" ]
, "maintainers" :

0 comments on commit bc97167

Please sign in to comment.