google / google/go-github

Add integration tests

Đang mở
#98 5 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Go
Star
11.3k
Fork
2.5k
Merge trung bình
1 ngày 20 giờ
Pull request đã merge (30 ngày)
52

Mô tả

This is an ongoing work item to add integration tests for the entire library. Unlike the existing unit tests that spin up a local HTTP server that mimics certain behavior of the API, these integration tests will call against the live GitHub API. As such, they will likely take a lot longer to execute and will not be run near as often. I've set things up with aff0a13d884ff5dc09bccb6c1ce081a82213bfab and will continue working from there.

I'm not 100% settled yet on how extensive these tests need to be. For example, we don't need to test the value of every field in a response. The biggest goal is to have a test suite that can be run when things like the [default media type changes](https://developer.github.com/changes/2014-04-09-reminder-about-default-media-type-change/) to make sure the library is still working properly. I also have a separate test suite that I'm working on to identify fields in responses that we aren't mapping into our Go structs.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu từ thiết lập kiểm thử tích hợp trong commit aff0a13d884ff5dc09bccb6c1ce081a82213bfab và so sánh với các kiểm thử đơn vị hiện có sử dụng máy chủ HTTP cục bộ. Xác định phạm vi cần thiết trước khi tiếp tục; kết quả hoàn thành phải là một bộ kiểm thử API GitHub trực tiếp phát hiện các vấn đề tương thích như thay đổi kiểu phương tiện mặc định mà không kiểm tra mọi trường phản hồi.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
go
Lĩnh vực
api, testing
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
20/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.