apache / apache/maven-resolver

[MRESOLVER-12] Addition of unit tests for DependencySelector implementations

Open
#784 2 comments 0 reactions 0 assignees View on GitHub
priority:minor
Dominant language
Java
Stars
152
Forks
160
Avg merge
1d 4h
Merged PRs (30d)
49

Description

**[Christian Schulte](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=schulte77)** opened **[MRESOLVER-12](https://issues.apache.org/jira/browse/MRESOLVER-12?redirect=false)** and commented

The `DefaultDependencyCollector` heavily relies on various components provided by an application. There should be unit tests for testing that at least the `ScopeDependencySelector` and `OptionalDependencySelector` selector are working as stated in the Javadoc.

---

**Issue Links:**
- [MRESOLVER-8](https://issues.apache.org/jira/browse/MRESOLVER-8) ScopeDependencySelector incorrectly de-selects direct dependencies
(_**"depends upon"**_)
- [MRESOLVER-9](https://issues.apache.org/jira/browse/MRESOLVER-9) DefaultDependencyCollector does not correctly handle dependency management
(_**"depends upon"**_)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the DefaultDependencyCollector and the ScopeDependencySelector and OptionalDependencySelector implementations mentioned in the issue, then read their Javadocs to identify the expected behavior. Add unit tests covering those documented cases and confirm the selectors behave as stated.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.