Repository navigation
Releases: MarioRuiz/create_tests
Releases · MarioRuiz/create_tests
Release list
v1.3.0
Changed
- Success response code: The successful-response example expects the first response key whose integer value is 200–299; if none, a key named
default; otherwise the first key. 4xx checks are unchanged. - Skip read-only fields in invalid-field tests: When
:data_read_onlyis present, those fields are left out of the payload passed toNiceHash.change_one_by_one. If every field is filtered out, that example is not emitted. - Apply
:data_defaultfor missing body fields: Missing or nil keys in:dataare filled from:data_default. Present values, includingfalseand0, are kept.:data_exampleswins when:datais absent.:data_patternis not overwritten.
v1.2.0
Added
- CLI
--spec_dirand--settings_dir only:/--onlyto generate a subset of examples (success,auth,required_params,mock,variations,invalid_fields,required_data)- Minitest output via
test: :minitestand--minitest(*_test.rb, default directory./test) - Gemspec links for the changelog, source, and issues
Changed
- Resource suffixes use up to 12 characters of the method name (
-create,-createorupda,-delete) - Append mode adds only missing setup and cleanup methods
subscriptions,resource_groups, andprovidersare omitted from the setup chain; their parameters are still passed through- CI uses
actions/checkout@v5
v1.1.0
Added
- Variation and invalid-field tests use
:data_patternwhen open_api_import provides it, and send the expanded payload as:data - When
:datais missing, the success test and required-field tests use the first:data_examplesentry - Required keyword parameters from
create_constants(id: ID) get Helper stubs and are passed asid: @id
v1.0.0
Added
CreateTests::VERSIONand a--version/-vflagreturn_dataand--dry_run/-d- Configurable
spec_dirandsettings_dir - Mock-response, fuzz, and field-by-field tests
- Prerequisite setup/cleanup in
helper/setup.rbandhelper/cleanup.rb, withDONT_DELETEand a per-spec name suffix cleanup: :after_all(default),:after_each, orfalse, plus--cleanup_eachand--no_cleanup- GitHub Actions CI and a unit test suite
Changed
- BREAKING: minimum Ruby is 3.0 (was 2.7)
nice_hashrequirement is~> 1.19- Successful-response checks use
NiceHttp.validate_responsewith a diff evalremoved;rescue Exceptionnarrowed toStandardError
Fixed
- Sibling modules were dropped while collecting endpoints
- Generated settings require the requests file with a path relative to
settings_dir(symlink-safe) spec/helper.rbrequires setup/cleanup only when those files are generated- Setup stubs return
OpenStructsoexpect(...).stateworks - Append mode no longer overwrites existing
helper/setup.rbandhelper/cleanup.rb cleanup: :after_eachmovesafter(:all)cleanup intoafter(:each)- Settings header typo: "Auhentication" → "Authentication"
Removed
- Travis CI
- Coveralls (SimpleCov remains for local coverage)