tôi đang sử dụngthử nghiệm Android - Làm thế nào để thêm Espresso Logs
androidTestCompile 'com.android.support.test:runner:0.3'
androidTestCompile 'com.android.support.test:rules:0.3'
androidTestCompile 'com.android.support:support-annotations:23.0.1'
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2'
androidTestCompile('com.android.support.test.espresso:espresso-contrib:2.2') {
// this library uses the newest app compat v22 but the espresso contrib still v21.
// you have to specifically exclude the older versions of the contrib library or
// there will be some conflicts
exclude group: 'com.android.support', module: 'appcompat'
exclude group: 'com.android.support', module: 'support-v4'
exclude module: 'recyclerview-v7'
}
androidTestCompile 'junit:junit:4.12'
cho kiểm tra và đã tự hỏi nếu there'sa cách để nói với espresso để in một bản ghi với các thử nghiệm bắt đầu và thử nghiệm thành như vậy sẽ được dễ dàng để xem logcat nếu một cái gì đó xảy ra.
Điều đó sẽ rất tuyệt khi kết hợp với papertrail để kiểm tra lý do tại sao các thử nghiệm không thành công và ở đâu với các máy chủ tích hợp riêng tư.
Nó đã in bản ghi ... 'TestRunner tôi bắt đầu: successCloseView' – Caipivara
Nghiêm túc, là không có cách nào để thực sự thêm gỡ lỗi log/console mục đến một Thử nghiệm Espresso? Khi đầu ra hiện tại không đủ, đây là bước tiếp theo tự nhiên: thêm ghi nhật ký moar. – ChrisPrime