Closed AA-Turner closed 1 month ago
Hi @AA-Turner maintainer of Hurl here. I'm a little blowed (and proud!) that Hurl have been chosen for this kind of tests for Python docs. Thanks for this!! I would like to know if something was missing in the language/tool when you say
The only redirect rule I haven't implemented tests for is the "content-negotiation" rule as it is too dynamic.
I'm interested in any feedbacks to see of we can improve some things...
Thanks @jcamiel, it is very impressive that we run 9,810 tests in only 1.7 seconds!
The "content-negotiation" rule is thus:
The way I wrote most other tests was reversing the regular expressions, to generate all valid inputs. Perhaps Hurl could do some form of property-based testing à la Hypothesis/QuickCheck? Though you may have better ideas here!
A
Thanks for the feedback, I'll try to improve things. Hurl's speed is really possible because of curl, can't take credit of it!
Based on & includes commits from:
504
This is the PR that actually implements automatic testing. We have ~9,400 test cases for redirects generated from the regular expressions in the
.conf.
file based on the currently supported languages. Each test file 'spec' represents a different redirect rule or group of redirect rules. Hurl runs these in parallel, so all tests only take a second or so to run.The only redirect rule I haven't implemented tests for is the "content-negotiation" rule as it is too dynamic.
A