tree: 0e8874addbfd587b5c9ebdd84f4047b67ba84082 [path history] [tgz]
  1. example/
  2. lib/
  3. test/
  4. CHANGELOG.md
  5. LICENSE
  6. mono_pkg.yaml
  7. pubspec.yaml
  8. README.md
pkgs/http_client_conformance_tests/README.md

pub package

A library that tests whether implementations of package:http Client behave as expected.

This package is intended to be used in the tests of packages that implement package:http Client.

Usage

package:http_client_conformance_tests is meant to be used in the tests suite of a package:http Client like:

import 'package:http/http.dart';
import 'package:test/test.dart';

import 'package:http_client_conformance_tests/http_client_conformance_tests.dart';

class MyHttpClient extends BaseClient {
  @override
  Future<StreamedResponse> send(BaseRequest request) async {
    // Your implementation here.
  }
}

void main() {
  group('client conformance tests', () {
    testAll(MyHttpClient());
  });
}