Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#3406 enhancement closed invalid (invalid)

Add --quiet option to Trial

Reported by: Thijs Triemstra Owned by:
Priority: normal Milestone:
Component: trial Keywords:
Cc: Thijs Triemstra Branch:


While testing trial --rterrors twisted on a device with very limited memory, it would eventually crash, most likely due to the memory limitation when trying to print the results to screen and write them to file. On unix a workaround would be trial --rterrors twisted > file.txt but this doesn't catch the warnings at startup:

/private/var/mobile/dev/software/twisted/twisted/conch/ssh/ RuntimeWarning: PyCrypto not installed, but continuing anyways!
/private/var/mobile/dev/software/twisted/twisted/python/ DeprecationWarning: twisted.flow is unmaintained.
  return __import__(importName)
/private/var/mobile/dev/software/twisted/twisted/scripts/test/ DeprecationWarning: mktap and related support modules are deprecated as of Twisted 8.0.  Use Twisted Application Plugins with the 'twistd' command directly, as described in 'Writing a Twisted Application Plugin for twistd' chapter of the Developer Guide.
  from twisted.scripts.mktap import run, getid
/private/var/mobile/dev/software/twisted/twisted/enterprise/ DeprecationWarning: twisted.enterprise.util is deprecated since Twisted 8.0.0.
/private/var/mobile/dev/software/twisted/twisted/test/ DeprecationWarning: twisted.persisted.marmalade is deprecated
  from twisted.persisted import marmalade
/private/var/mobile/dev/software/twisted/twisted/words/im/ UserWarning: will be undergoing a rewrite at some point in the future.
  warnings.warn(" will be undergoing a rewrite at some point in the future.")

So perhaps something like a --quiet option, that will also not print anything to file unless I supplied the --logfile=log.txt option?

Change History (5)

comment:1 Changed 11 years ago by Thijs Triemstra

Component: coretrial
Owner: changed from Glyph to Jonathan Lange

comment:2 Changed 11 years ago by Glyph

Resolution: invalid
Status: newclosed

This doesn't sound very well specified. Presumably if you run trial you want it to produce some output. Maybe you mean --only-failures or something, I don't know; but if your iphone crashes then the problem is that your iphone crashes, let's not add features to trial unless they solve a specific problem.

comment:3 Changed 11 years ago by Jean-Paul Calderone

Additionally, trial --reporter=summary should already cover this case.

comment:4 Changed 11 years ago by Thijs Triemstra

Also noticed #3003 just now :)

comment:5 Changed 8 years ago by <automation>

Owner: Jonathan Lange deleted
Note: See TracTickets for help on using tickets.