posit-dev / posit-dev/images-shared

Improve handling of test project resource suites

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

Nobody has claimed this yet.

cvp:0 docker qa tdp:2 tech debt
Dominant language
Python
Stars
2
Forks
0
Avg merge
4d 13h
Merged PRs (30d)
22

Description

I added another test resource suite, "barebones", in #82 since the "basic" suite could not fulfill my requirements for testing Snyk commands. This required me to do a bunch of copy/paste of the fixtures available for "basic" which is not a great way of handling this moving forward. We need to find a way to condense down the fixture code (possibly by using factories?) so we don't add 100 loc each time we have need for a new suite.

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

Compare the existing "basic" and "barebones" resource-suite fixtures, including the copy/pasted setup added in #82, to identify the shared structure. Run the relevant test-project checks and consider the fixture-sharing approach; done means a new suite no longer requires duplicating roughly 100 lines while existing suites continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing-qa
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 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.