Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(integ-runner): Support non-TypeScript tests #22521

Closed
wants to merge 7 commits into from

Commits on Oct 16, 2022

  1. Added parameter to integ-runner CLI to specify a custom run command f…

    …or the tests. This allows for tests written in other languages than TypeScript to be evaluated.
    
    Changed integration test file discovery to work with the naming conventions of all languages supported by CDK.
    
    Updated unit tests for integ-runner.
    karakter98 committed Oct 16, 2022
    Configuration menu
    Copy the full SHA
    8d0a523 View commit details
    Browse the repository at this point in the history
  2. Updated README.md

    karakter98 committed Oct 16, 2022
    Configuration menu
    Copy the full SHA
    574581f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5359a18 View commit details
    Browse the repository at this point in the history
  4. Using a single regex to validate prefixes for tests in all languages …

    …was problematic and broke some existing tests (unit tests in TS named integration-tests.ts for example). Changed to use a different regex pattern to discover tests with different extensions.
    karakter98 committed Oct 16, 2022
    Configuration menu
    Copy the full SHA
    4a16192 View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2022

  1. Configuration menu
    Copy the full SHA
    fa8a56e View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2022

  1. Added more customizability options to the integ-runner CLI

    Now implements default run commands for all languages.
    
    Implemented different matching patterns for different file extensions.
    
    Now filters out duplicate test names, and makes sure to give precedence to .ts files over their compiled .js files.
    
    Java default Maven run command is now inferred from the directory structure of the Java project. The classpath for each individual test will automatically be discovered, together with the closest pom.xml file in the project hierarchy.
    karakter98 committed Oct 18, 2022
    Configuration menu
    Copy the full SHA
    4d21159 View commit details
    Browse the repository at this point in the history
  2. Fixed existing integration test that worked when executed as a .js co…

    …mpiled file, but broke if run with ts-node directly.
    karakter98 committed Oct 18, 2022
    Configuration menu
    Copy the full SHA
    d110bce View commit details
    Browse the repository at this point in the history