microsoft / microsoft/OSSGadget

Mock Downloader for tests

Open
#78 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C#
Stars
371
Forks
58
PR merge metrics
No merged PRs in 30d

Description

The download tests can take a long time to run (just took me 11 minutes). The main culprit is VSM_Download_Version_Succeeds which took half of the time at 5.5 minutes.

Maven_Download_Version_Succeeds also took 4 minutes.

I think we don't need to test actual network traffic and we should try to mock the actual downloading if we can.

This also applies to the detectcryptography tests which could be run against cached copies of the code as well.

Contributor guide

No contributing guide indexed for this repository

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 examining the VSM_Download_Version_Succeeds and Maven_Download_Version_Succeeds download tests, then review the detectcryptography tests and their current network or cached-code setup. Done means these tests avoid real network downloads while still verifying the intended behavior and complete substantially faster.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
testing
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.