[erlang-questions] common test hiding errors?

Joel Reymont joelr1@REDACTED
Wed Aug 10 12:39:23 CEST 2011


On Aug 10, 2011, at 9:09 AM, Lukas Larsson wrote:

> Common Test detects any crashes which happen in the same process as the testcase is run in. If a crash happens in another process, it will not be detected unless you in your testcase check whether said process is alive or is linked to it. Could this be what is going wrong?

Yes, that's what's going on. I'm cannot link to all the processes in the "system under testing", I think that's unrealistic. 

I do expect to be told when something goes wrong, though, get a printout in the log, etc. 

This is in line with what EUnit does, for example.

> If you're still having difficulties, could you post a minimal example of what you are trying to do? It's difficult to guess what could be the problem without an example to look at.

It's another process that's crashes. 

> Also if you want to have the SASL and error_logger output in your common test logs instead of redirecting them to a local file you might want to use the cth_log_redirect hook found here https://github.com/garazdawi/cth_tools.


I'm perfectly fine with redirecting error_logger output to a local file but it seems that it shows up just fine in the CT logs. 

What's not showing up is error messages from other processes crashing, a completely unintuitive behavior, I think.

	Thanks, Joel

--------------------------------------------------------------------------
- for hire: mac osx device driver ninja, kernel extensions and usb drivers
---------------------+------------+---------------------------------------
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
---------------------+------------+---------------------------------------






More information about the erlang-questions mailing list