内容简介:我不认为“这就是它应该如何工作”.没有理智的测试工具应该为您隐藏异常细节和行号.翻译自: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
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
猜你喜欢:- Panic,堆栈跟踪以及如何恢复【最佳实践】(译文)
- JVM中常用堆栈跟踪内建指令
- 基于弹性堆栈(ELK堆栈)的日志分析、存储及展示
- Go 有 GC 就不需要掌握内存堆栈知识了吗?Go 堆栈的理解
- Go 堆栈的理解
- Go 堆栈的理解
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
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》 这本书的介绍吧!