Commit Graph

12 Commits

Author SHA1 Message Date
Luca Cavanna 88771fdf99 [TEST] Added ability to test apis that don't return json
The last response body gets now always stashed in the REST tests and can be retrieved via `$body`. This implies that not only expected values can be retrieved from the stashed values, but actual values as well.

Added support for regular expressions to `match` assertion, using `Pattern.COMMENTS` flag for better readability through new custom hamcrest matcher (adopted in do section as well). Functionality added through new feature called `regex` that needs to be mentioned in the skip sections whenever needed till all the runners support it.

Added also example tests for cat count api
2014-02-03 11:26:38 +01:00
Luca Cavanna d68d8fbf11 [TEST] clarified skip features usage 2014-01-31 18:03:24 +01:00
Luca Cavanna 33d5a722b3 [TEST] Added ability to skip REST test suite/sections based on their required features
As we have different runners for the REST tests we need a mechanism that allows us to add features to any of them without breaking all others builds.
The idea is to name a feature and temporarily use skip sections that mention the required new features, so that runners that don't support it will skip the test.

Added support for `features` field in skip section.
Added `Features` class that contains a static list of the features supported by the runner. If a feature mentioned in a skip section is not listed here, the test will be skipped.
2014-01-31 16:47:40 +01:00
Clinton Gormley 5a31353fb0 Updated the test README to allow multiple test sections and an initial setup section 2013-09-18 15:54:58 +02:00
Honza Kral 3e01daf34f enable skip to be in the middle of a test 2013-07-23 20:24:46 +02:00
Honza Kral 77fe6f25e2 formattings issues 2013-07-23 19:20:40 +02:00
Honza Kral cca1c50632 Add a comment about using \. to escape dots in yaml lookup paths 2013-07-22 00:51:35 +02:00
Clinton Gormley f268a9246c Improved formatting of test README 2013-07-02 11:28:50 +02:00
Clinton Gormley 660ec31ded Clarified that testing a field called "" (empty string) tests the whole $var 2013-07-01 16:03:03 +02:00
Clinton Gormley df94f08dab Renamed "ok" and "not_ok" to "is_true" and "is_false"
and tidied up the layout to make it easier to read
2013-07-01 15:58:23 +02:00
Clinton Gormley 63ad90a3a8 Added test skipping to the README 2013-06-28 17:42:00 +02:00
Clinton Gormley 5dabc444ba Added a README explaining the functionality required to run the test suite 2013-06-27 12:55:16 +02:00