apple / apple/pkl

Allow to Mock Resource in testing

Open
#1,059 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
11.5k
Forks
402
Avg merge
1d 15h
Merged PRs (30d)
20

Description

i would to mock read's like `read("env:MY_CUSTOM_ENV")` for a specific test case/(or test file at least)

Context: I have a Global Config object which reads env variables and i would like to define them in a test file.

Mocking Resources could be a way i think

Contributor guide

Open the contributing guide

Research direction

No file, test, or entry point is named. Start by examining how read("env:MY_CUSTOM_ENV") is resolved and how a Global Config object reads environment variables. Done means a test case or test file can provide mocked resource values and verify the resulting configuration.

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
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.