erlang – 不在EUnit中输出异常堆栈跟踪

栏目: Erlang · 发布时间: 6年前

内容简介:我不认为“这就是它应该如何工作”.没有理智的测试工具应该为您隐藏异常细节和行号.翻译自:https://stackoverflow.com/questions/10509238/not-output-exception-stack-trace-in-eunit

我正在用EUnit编写测试,但在控制台中没有任何异常细节输出.

exp_test() ->
  ?assertEqual(0, 1/0).

运行此模块:以下Erlang Shell输出中的exp_test()

** exception error: bad argument in an arithmetic expression
 in function  exp_test:'-exp_test/0-fun-0-'/1 (src/test/eunit/xxx_test.erl, line 8)

但在EUnit输出之后

> eunit:test(xxx).
> xxx_test: exp_test...*failed*
  ::badarith

EUnit不输出任何异常跟踪信息

我在eunit中尝试了详细的配置,但没有效果.

我想在eunit测试结果中输出一些异常细节.

谢谢〜

我不认为“这就是它应该如何工作”.没有理智的测试 工具 应该为您隐藏异常细节和行号.

翻译自:https://stackoverflow.com/questions/10509238/not-output-exception-stack-trace-in-eunit


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

PHP for the World Wide Web, Second Edition (Visual QuickStart Gu

PHP for the World Wide Web, Second Edition (Visual QuickStart Gu

Larry Ullman / Peachpit Press / 2004-02-02 / USD 29.99

So you know HTML, even JavaScript, but the idea of learning an actual programming language like PHP terrifies you? Well, stop quaking and get going with this easy task-based guide! Aimed at beginning ......一起来看看 《PHP for the World Wide Web, Second Edition (Visual QuickStart Gu》 这本书的介绍吧!

MD5 加密
MD5 加密

MD5 加密工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具