Skip to content

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 28 Dec 11:49
v0.1.0
06dff66

Added

  • CI: Integrated Codecov for test coverage tracking

    • Added coverage collection to CI workflow (dart test --coverage)
    • Added automatic upload to Codecov with codecov-action@v5
    • Added codecov.yml configuration with ignore rules for generated code
    • Added coverage badge to README.md
  • Testing: Added 160+ tests across all domains based on Java codebase reference

  • Testing: Enhanced test coverage for HTTP module

    • Added test/http/terminal_local/connection_options_test.dart - 6 tests for TerminalLocalConnectionOptions
    • Added test/http/terminal_local/connection_factory_test.dart - 7 tests for connection factory
    • Added test/http/terminal_local/sni_config_test.dart - 5 tests for SNI configuration
    • Added test/http/client/default_client_test.dart - 10 tests for DefaultHttpClient (including redirect hostname validation)
    • Added test/http/client/terminal_local_client_test.dart - 3 tests for TerminalLocalHttpClient
    • Added test/http/exceptions/exception_parser_test.dart - 36 tests for exception parsing
    • Total: 67 new tests improving coverage across terminal_local (from 3.57%), client (from 54.70%), and exceptions (from 70.97%)
    • test/security/nexo_crypto_test.dart - NEXO cryptographic operations
    • test/mocks/ - Reusable mock data templates (common responses, errors, terminal)
    • Balance Platform: +31 tests
    • Checkout/Payment: +32 tests
    • Terminal & POS: +20+ tests
    • Management/Legal Entity: +13 tests
    • Webhooks: +12 tests
    • Data Services: +6 tests
    • Specialized Services: +10 tests

Changed

  • Testing: Unified test assertion style (replaced try-catch-fail with expectLater + throwsA)
  • Project: Updated project rules and documentation
    • Updated dart version requirement to target latest version using fvm
    • Clarified dart command execution using fvm dart <command>
    • Added verification requirements for dart format, dart analyze, and dart test
    • Added CHANGELOG.md update requirement using "Keep a Changelog" format

Fixed

  • Testing: Fixed browser compatibility for HMAC validator and notification webhook tests

    • Inlined JSON fixture data to remove dart:io file system dependencies
    • Removed @TestOn('vm') platform restrictions, enabling tests to run on both VM and Chrome
    • Deleted obsolete fixture files from test/fixtures/notification/
  • Code Organization: Refactored HTTP module structure for improved maintainability

    • Reorganized into subdirectories: client/, exceptions/, headers/, models/, terminal_local/, dio/
    • Renamed RequestOptions to AdyenRequestOptions to avoid naming conflicts with Dio
  • CI: Added ripgrep installation to resolve rg: command not found warnings in generate_model_exports.sh


Pub.dev: Published at https://pub.dev/packages/adyen_api