GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Create a tests bundle for maven · Issue #217 · googleapis/google-cloud-java

Create a tests bundle for maven #217

New issue
Copy link
New issue
Copy link
Closed
Closed
Create a tests bundle for maven#217
Copy link
Assignees
ajkannan
Labels
🚨 criticalP0 critical issue. Requires immediate fixtriage meI really want to be triaged.

Description

@ajkannan
ajkannan
opened on Oct 7, 2015
Issue body actions

Right now, test classes are not pushed to maven. However, some test classes are useful for users to test their own code locally, like LocalGcdHelper.

Activity

Next
  1. ajkannan
    self-assigned this
    on Oct 7, 2015
  2. aozarov commented on Oct 7, 2015

    @aozarov
    aozarov
    on Oct 7, 2015
    Contributor
    More actions

    It does look like we can push test artifacts and people can use them using a test-jar type.

    I can see a potential value in having a test artifact (e.g. we could share base test classes,..) but
    at the moment the only thing we care about is the test helper LocalGcdHelper and soon RemoteGcsHelper.

    Another option we can take is to move these test-helpers which are not tests themselves to a "testing"
    sub package in the main src directory (e.g. com.google.gcloud.datastore.testing.LocalGcdHelper in src/main).

    The benefit of the latter is greater visibility for these helpers.
    Also, another benefit is that they could have their own package-info.java with examples
    of how to use them in tests (see issue #165).

    Thoughts?

    /cc @ajkannan @mziccard @jgeewax

  3. mziccard commented on Oct 7, 2015

    @mziccard
    mziccard
    on Oct 7, 2015
    Contributor
    More actions

    I see 3 options here:

    1. Text artifact with test-jar type: people can re-use test classes (not only LocalGcdHelper and RemoteGcsHelper) and run the tests contained in the jar
    2. Put helpers in a testing package inside each module's src
    3. Create a gcloud-test module and put all helpers there
    1. is the most flexible solution and also allows users to re-run tests from the jar (even though I struggle to find a reasonable use case for this for a user), 2) is also ok as I expect users to only reuse helpers, this also gives helpers more visibility and allows us to document their usage in package's javadoc 3) Has the same benefits of 2 (maybe less visibility?) and also puts all helpers in the same module.

    I don't have a strong opinion. If we want users to reuse and rerun tests we must go with solution 1. Otherwise I think solutions 2 and 3 as equally good (I have a slight preference for 3).

  4. ajkannan commented on Oct 7, 2015

    @ajkannan
    ajkannan
    on Oct 7, 2015
    Author
    More actions

    I like the submodule option 2. I agree that it's hard to find a use case for option 1, and I have a slight preference for 2 over 3 since option 2 automatically gives users the relevant test classes without having to list another dependency.

  5. aozarov commented on Oct 7, 2015

    @aozarov
    aozarov
    on Oct 7, 2015
    Contributor
    More actions

    I have slight preference for option 2.

    Mostly because I think it is simple and likely to have the best visibility (including a place to document it, per service, in their respective package-info).

  6. aozarov
    closed this as completedin #221on Oct 8, 2015
  7. yoshi-automation
    added
    🚨 criticalP0 critical issue. Requires immediate fix
    triage meI really want to be triaged.
    on Apr 6, 2020
  8. github-actions
    added a commit that references this issue on Jun 23, 2022

    chore(main): release 2.2.2-SNAPSHOT (#217)

    e497e59
  9. github-actions
    added a commit that references this issue on Jul 1, 2022

    chore: regenerate README (#217)

    a6cf25a
  10. github-actions
    added 3 commits that reference this issue on Jul 14, 2022

    chore: fix minor typos in README and pom templates (#1479) (#217)

    f76e42b

    chore(main): release 2.3.2 (#217)

    58deacf

    build(deps): update dependency org.apache.maven.plugins:maven-deploy-…

    9659b5b
  11. github-actions
    added 2 commits that reference this issue on Aug 9, 2022

    chore(deps): update dependency com.google.cloud:google-cloud-eventarc…

    829b640

    build(deps): update dependency com.google.cloud:google-cloud-shared-c…

    4cb3782
  12. 1 remaining item

  13. github-actions
    added a commit that references this issue on Aug 16, 2022

    chore(deps): update dependency com.google.cloud:google-cloud-filestor…

    9d270d9
  14. github-actions
    added 3 commits that reference this issue on Sep 15, 2022

    chore(main): release 0.4.3-SNAPSHOT (#217)

    924a808

    chore(main): release 0.7.4 (#217)

    739f1c1

    chore(main): release 1.4.2 (#217)

    a80c934
  15. github-actions
    added 5 commits that reference this issue on Sep 30, 2022

    Revert "chore: pin versions of dependencies for compatibility with Py… (

    671be20

    chore(main): release 0.6.3 (#229)

    1bdb368

    chore(main): release 1.3.4 (#236)

    919b220

    chore(main): release 1.3.1 (#205)

    858374e

    chore(main): release 1.2.1 (#224)

    f0e999d
  16. suztomo
    added a commit that references this issue on Feb 1, 2023

    chore(main): release 2.0.0 (#739)

    ea9f421
  17. chingor13
    added a commit that references this issue on Jan 6, 2026

    chore(deps): update dependency com.google.cloud:libraries-bom to v13.…

    a2e1d6f
  18. chingor13
    added a commit that references this issue on Jan 22, 2026

    chore: add repo settings configuration (#217)

    1f028b4
  19. chingor13
    added a commit that references this issue on Feb 24, 2026

    Add kokoro job for publishing javadoc to GCS (#217)

    a1bbc4f
  20. chingor13
    added a commit that references this issue on Mar 12, 2026

    Add kokoro job for publishing javadoc to GCS (#217)

    5d72d3b
  21. blakeli0
    added a commit that references this issue on May 18, 2026

    Bump version to 1.7.0 (#217)

    4d2f0b8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @ajkannan
    ajkannan

Labels

🚨 criticalP0 critical issue. Requires immediate fixtriage meI really want to be triaged.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.