Skip to content

Releases: MarioRuiz/create_tests

v1.3.0

Choose a tag to compare

@MarioRuiz MarioRuiz released this 23 Sep 14:08

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_only is present, those fields are left out of the payload passed to NiceHash.change_one_by_one. If every field is filtered out, that example is not emitted.
  • Apply :data_default for missing body fields: Missing or nil keys in :data are filled from :data_default. Present values, including false and 0, are kept. :data_examples wins when :data is absent. :data_pattern is not overwritten.

v1.2.0

Choose a tag to compare

@MarioRuiz MarioRuiz released this 23 Sep 12:56

Added

  • CLI --spec_dir and --settings_dir
  • only: / --only to generate a subset of examples (success, auth, required_params, mock, variations, invalid_fields, required_data)
  • Minitest output via test: :minitest and --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, and providers are omitted from the setup chain; their parameters are still passed through
  • CI uses actions/checkout@v5

v1.1.0

Choose a tag to compare

@MarioRuiz MarioRuiz released this 23 Sep 12:37

Added

  • Variation and invalid-field tests use :data_pattern when open_api_import provides it, and send the expanded payload as :data
  • When :data is missing, the success test and required-field tests use the first :data_examples entry
  • Required keyword parameters from create_constants (id: ID) get Helper stubs and are passed as id: @id

v1.0.0

Choose a tag to compare

@MarioRuiz MarioRuiz released this 23 Sep 11:59

Added

  • CreateTests::VERSION and a --version / -v flag
  • return_data and --dry_run / -d
  • Configurable spec_dir and settings_dir
  • Mock-response, fuzz, and field-by-field tests
  • Prerequisite setup/cleanup in helper/setup.rb and helper/cleanup.rb, with DONT_DELETE and a per-spec name suffix
  • cleanup: :after_all (default), :after_each, or false, plus --cleanup_each and --no_cleanup
  • GitHub Actions CI and a unit test suite

Changed

  • BREAKING: minimum Ruby is 3.0 (was 2.7)
  • nice_hash requirement is ~> 1.19
  • Successful-response checks use NiceHttp.validate_response with a diff
  • eval removed; rescue Exception narrowed to StandardError

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.rb requires setup/cleanup only when those files are generated
  • Setup stubs return OpenStruct so expect(...).state works
  • Append mode no longer overwrites existing helper/setup.rb and helper/cleanup.rb
  • cleanup: :after_each moves after(:all) cleanup into after(:each)
  • Settings header typo: "Auhentication" → "Authentication"

Removed

  • Travis CI
  • Coveralls (SimpleCov remains for local coverage)

v0.6.5

Choose a tag to compare

@MarioRuiz MarioRuiz released this 04 Jul 13:25
sbf

v.0.6.2

Choose a tag to compare

@MarioRuiz MarioRuiz released this 14 Apr 13:32
0.6.2. released

v.0.6.0

Choose a tag to compare

@MarioRuiz MarioRuiz released this 04 Mar 11:30
v0.6.0

close #1