pulumi / pulumi/pulumi-java

Document unit testing in Java

Open
#1,315 3 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/testing kind/enhancement
Dominant language
Java
Stars
85
Forks
26
Avg merge
11h 49m
Merged PRs (30d)
22

Description

Hello!

  • Vote on this issue by adding a 👍 reaction
  • If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details

There doesn't seem to be any unit testing scaffolding support for the Java SDK. Compare and contrast that to the Python API with pulumi.runtime.Mocks , TypeScript with pulumi.runtime.setMocks and Go with pulumi.MockResourceArgs (and friends).
Whilst integration testing is certainly possible, the feedback from the unit tests would be much faster

Affected area/feature

Unit testing

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the Java SDK's existing testing support and comparing the referenced Pulumi testing APIs for Python, TypeScript, and Go. Determine the Java API and scaffolding needed for unit tests, then confirm the design and expected coverage with maintainers; done means Java users can write fast unit tests comparable to those APIs.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.