当我通过manage.py test
运行django测试时,有没有办法将结果输出到文本文件?在Linux上Django测试转储数据/结果
7
A
回答
11
,你可以这样做:
python manage.py test > stdout.txt 2> stderr.txt
将输出重定向到文件中。
+0
这应该也适用于Windows。 – Thomas 2011-03-13 14:38:33
+0
感谢它的工作.. – 2014-07-05 21:11:08
相关问题
- 1. svn转储测试数据?
- 2. 解析django测试结果
- 3. 循环以Python存储测试结果
- 4. Django - 数据迁移+数据库转储
- 5. 存储测试数据
- 6. Django - 存储查询结果
- 7. 无法在TFS 2005结果存储中存储加载测试结果
- 8. 数据库结构测试
- 9. python测试结果与caffe测试结果不一样
- 10. 在Django测试期间没有存储会话数据
- 11. 函数与测试结果不符
- 12. Microsoft测试管理器 - 通过Manager或Tfs_Warehouse数据库编辑测试结果?
- 13. Django选择性转储数据
- 14. Android。 Robolectric。测试AccountManager结果
- 15. UnityContainer性能测试结果
- 16. Jenkins测试结果历史
- 17. Selenium:导出测试结果
- 18. 测试峰值结果
- 19. libsvm的测试结果
- 20. Visual Studio测试结果
- 21. 后空翻测试结果
- 22. Jenkins测试结果管理
- 23. RSpec测试,结果JSON
- 24. Massive的测试结果
- 25. 使用Python单元测试来测试数组中的结果
- 26. django - 测试中的初始数据
- 27. 如何测试django数据库模式?
- 28. Django测试异步数据库写入
- 29. django单元测试多个数据库
- 30. 运行集成测试时“转储”hql数据库
'manage.py test> results.txt'有什么问题? – Bjorn 2011-03-13 11:44:24