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

Add feature to run Geb specs with Testcontainers #61

Merged
merged 14 commits into from
Oct 23, 2024

Commits on Oct 14, 2024

  1. feat: Add ContainerGebSpec for running the browser in a container

    This feature enables easy running of geb tests in a container so you don't have to manage driver versions on the host machine.
    matrei committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    f2dc00e View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2024

  1. fix: Set proper package for ContainerGebSpec

    The common package name used by grails plugins is `grails.plugin.{plugin-name}`.
    matrei committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    9c31099 View commit details
    Browse the repository at this point in the history
  2. refactor: Move GebGrailsPlugin to package grails.plugin.geb

    The common package name used by grails plugins is `grails.plugin.{plugin-name}`.
    matrei committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    3cc8dd6 View commit details
    Browse the repository at this point in the history
  3. fix: Throw IllegalStateException if serverPort is null

    For `ContainerGebSpec` to work, the serverPort needs to be set.
    This is done by adding the `@Integration` annotation to the test class.
    matrei committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    2c20434 View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2024

  1. Configuration menu
    Copy the full SHA
    a368a26 View commit details
    Browse the repository at this point in the history
  2. fix: Major updates to ContainerGebSpec feature

    - Use Gradle testFixtures feature to make test dependencies available to downstream projects without leaking them to the wrong scopes
    - Refactor `ContainerGebSpec` in co-operation with sbglasius to add more features and make it work without Docker Desktop.
    matrei committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    d9ce199 View commit details
    Browse the repository at this point in the history
  3. fix: Change scope of dependencies in generated tests

    After this change this library needs to be referenced with `integrationTestImplementation testFixtures('org.grails.plugins:geb')`
    but now we are not leaking any test dependencies to downstream projects non-test configurations.
    matrei committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    5bc7784 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bfae916 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0399b8f View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2024

  1. Configuration menu
    Copy the full SHA
    426f4c7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d077bdb View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2024

  1. Configuration menu
    Copy the full SHA
    dfd27aa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d4e8615 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2061ddf View commit details
    Browse the repository at this point in the history