A conformance testing tool for HTTP/2 implementation.
Перейти к файлу
Tatsuhiro Tsujikawa 346e9121c0 Print test summary including failed test's result
h2spec prints out the progress of tests beautifully, but most of the
times we are interested in failed tests.  Currently, we have to look
carefully the terminal while tests are running or scroll back the
terminal to see whether failed tests exist or not.

To solve the above problem, this commit adds summary output after all
tests are performed.  It prints out the failed test cases including
expected and failed pair in a same format shown during testing.  It
also prints out the number of tests, passed, skipped and failed test
cases so that we can see what happened easily.
2015-02-25 00:01:17 +09:00
cmd Change default timeout to 2 sec 2015-02-15 23:34:16 +09:00
.gitignore Initialize 2014-08-29 14:17:08 +09:00
3_5.go Handle ECONNRESET as connection close 2015-02-19 22:48:03 +09:00
4_2.go Fix test 4.2 to test for stream error 2015-02-19 14:30:34 +00:00
4_3.go Refactor test cases 2015-02-15 23:32:50 +09:00
5_1.go unset the END_HEADERS flag for stream concurrency test 2015-02-19 00:05:14 +09:00
5_4.go Handle ECONNRESET as connection close 2015-02-19 22:48:03 +09:00
5_5.go Handle ECONNRESET as connection close 2015-02-19 22:48:03 +09:00
6_1.go Refactor test cases 2015-02-15 23:32:50 +09:00
6_2.go Refactor test cases 2015-02-15 23:32:50 +09:00
6_3.go Refactor test cases 2015-02-15 23:32:50 +09:00
6_4.go Refactor test cases 2015-02-15 23:32:50 +09:00
6_5.go Handle ECONNRESET as connection close 2015-02-19 22:48:03 +09:00
6_7.go Handle ECONNRESET as connection close 2015-02-19 22:48:03 +09:00
6_8.go Refactor test cases 2015-02-15 23:32:50 +09:00
6_9.go Handle ECONNRESET as connection close 2015-02-19 22:48:03 +09:00
6_10.go Handle ECONNRESET as connection close 2015-02-19 22:48:03 +09:00
8_1.go Add test case for 'content-length' header field and multiple DATA frames 2015-02-18 23:47:24 +09:00
8_2.go Refactor test cases 2015-02-15 23:32:50 +09:00
LICENSE Add LICENSE 2014-12-03 23:32:51 +09:00
README.md Update manual and screenshot 2015-02-16 00:07:27 +09:00
h2spec.go Print test summary including failed test's result 2015-02-25 00:01:17 +09:00

README.md

h2spec

h2spec is a conformance test tool for HTTP/2 server.
This tool supports draft-ietf-httpbis-http2-17.

Install

Go to the releases page, find the version you want, and download the zip file.

Build

  1. Make sure you have go 1.4 and set GOPATH appropriately
  2. Clone this repo and move to the cloned repo directory
  3. Run go get github.com/bradfitz/http2
  4. Run go build cmd/h2spec.go

Usage

$ h2spec --help
Usage: h2spec [OPTIONS]

Options:
  -p:     Target port. (Default: 80)
  -h:     Target host. (Default: 127.0.0.1)
  -t:     Connect over TLS. (Default: false)
  -k:     Don't verify server's certificate. (Default: false)
  -o:     Maximum time allowed for test. (Default: 2)
  -s:     Section number on which to run the test. (Example: -s 6.1 -s 6.2)
  --help: Display this help and exit.

Screenshot

Sceenshot