Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用几个常见的嫌疑人(rspec,rack/test)测试 Sinatra 应用程序。在开发过程中,有时应用程序中的错误会导致 Sinatra 生成错误响应页面。这个页面是一段华丽的 HTML,如果我在浏览器中与它进行交互,它会非常好用,但是,在基于文本的测试运行器世界中,它实际上很难阅读。
rspec
rack/test
有没有一种配置 Sinatra 的好方法,当我在单元/集成测试环境中运行它时,它会以纯文本形式显示这些错误?