dotnet / dotnet/macios

[RFC] Automate network testing for all the different handlers.

Open
#5,901 0 comments 1 reaction 0 assignees View on GitHub
enhancement iOS macOS request-for-comments
Dominant language
C#
Stars
2.9k
Forks
576
Avg merge
2d 13h
Merged PRs (30d)
96

Description

The handler code is complicated and sometimes fragile. Although we do have unit tests that test that certain tests were fixed, we do not have a full set of tests for the different requests that can be performed by a HttpClient.

The idea is to do the following. [httbin.org](https://httpbin.org) is a nice tool which can be used to test a request from point to point. Of course, it is not nice to depend on an external resource for our testing, but thankfully, there is a [docker version of the page](https://hub.docker.com/r/kennethreitz/httpbin/).

Ideally, we could create a set of integration tests (not unit test parse since they test the entire round trip of the request) that do the following:

1. Launch the docker version of httpbin.org locally.
2. Perform all the required requests to be tested, for example:
- Redirect tests
- Large downloads.
- Cancellations.
- Internet disconnects
3. Get the results and expose them via jenkins or VSTS.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.