Jib: Add integration test for various project configurations.

Created on 7 Feb 2018  路  4Comments  路  Source: GoogleContainerTools/jib

  • [x] Simple project
  • [x] Empty project (no dependencies/no resources/an empty main class)
  • [x] Blank project (no dependencies/no resources/no classes)
  • [ ] Multi-module project with single root build script (Gradle)
  • [ ] Multi-module project with Maven
  • [x] Complex project (using every parameter)
  • [ ] Build as OCI image format (requires a bit more setup on our end)
  • [ ] Other languages (Groovy, Kotlin)
arejib-maven-plugin kingood first issue kinquestion prioritp0

All 4 comments

@coollog, I would like to add integration tests for Kotlin, but I'm not sure where to start.

Hi @wilder , thanks for offering to contribute! Here's some tips for how to get started:

  1. Read the CONTRIBUTING guide - you probably want to make sure you can run your integration tests since this is explicitly adding integration tests (if this is not possible feel free to skip those and we can run them from our side)
  2. I'm assuming this would be only for Gradle since it seems to the build tool of choice for Kotlin developers, and the integration-test projects for jib-gradle-plugin are under the integration-test resources
  3. Check out the other integration-test projects as examples.
  4. Create a new integration-test project for Kotlin.
  5. Add the corresponding test code in JibPluginIntegrationTest.java
  6. File a pull request and get approved :)

Thanks! Let us know if you run into any issues!

@wilder Also, I'd recommend making a new issue and referencing this issue so that we can better organize any discussions we have.

Closing as we have added many integration tests.

Was this page helpful?
0 / 5 - 0 ratings