Releases: superfaceai/testing
Releases · superfaceai/testing
v5.0.0
v4.0.0
4.0.0 - 2023-02-08
Changed
@superfaceai/one-sdkpeer dependency from^2.0to^2.3@superfaceai/parserpeer dependency from^1.2.0to^2.1.0
v4.0.0-beta.0
chore: release v4.0.0-beta.0
v4.1.0-beta.0
chore: release v4.1.0-beta.0
v4.0.0-rc.0
chore: release v4.0.0-rc.0
v3.0.0
3.0.0 - 2022-12-07
Added
- New parameter
recordingTypein methodrun()to differentiate between prepare, teardown or main test run - New dev and peer dependency - Superface Parser v1.2.0
- New module for preparing files necessary for
perform(SuperJson, ProfileAST, MapAST, ProviderJson) - New module for mocking necessary files for
perform - Support hiding of credentials used with new security scheme Digest
- New parameter
fullErrorin methodrun()to enable returning wholePerformErrorinstead of string - New static function
reportinSuperfaceTestto report found provider changes - Module
matcherfor comparing old and new HTTP traffic - Module
analyzerfor determining impact of provider changes - Module
reporterfor reporting provider changes throughout tests - Class
ErrorCollectorfor collecting errors inmatcher - Environment variable
UPDATE_TRAFFICto replace old traffic with new, if present - Environment variable
DISABLE_PROVIDER_CHANGES_COVERAGEto disable collecting of test reports - Environment variable
USE_NEW_TRAFFICto test with newly recorded traffic - Environment variable
DECODE_RESPONSEto save recordings with decoded response next to original one - Errors for module
matcher - Error
CoverageFileNotFoundErrorfor correct reporting
Changed
- BREAKING CHANGE: Recording fixtures are grouped by test file or provider
- BREAKING CHANGE: Recording fixtures are stored next to test file OR in
<project-dir>/recordings/<profile>/<provider>.recording.json - BREAKING CHANGE: Updated One-SDK to v2.0.0
- BREAKING CHANGE: Use
BoundProfileProviderinstead of using client and use-case to runperform-> Local use only - Move functions used for recording in
SuperfaceTestto seperate module - Use
SecurityConfiguration(containing mergedSecurityValueandSecuritySchemeinterfaces) instead of using them separately - Move parameter
testInstancefrom superface components to second parameter in constructor - Return value from method
runtoPerformError | string - Does not overwrite HTTP traffic recording when in record mode, instead save new one next to old one with suffix
-new
Removed
- Parameter
clientfrom constructor and methodrun - Function for omitting timestamp from perform error
removeTimestamp
v3.0.0-rc.2
chore: release v3.0.0-rc.2
v3.0.0-rc.1
chore: release v3.0.0-rc.1
v3.0.0-beta.5
chore: release v3.0.0-beta.5
v3.0.0-rc.0
chore: release v3.0.0-rc.0