GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — refactor(tests): remove test smells in unit tests by victtorqueiroz · Pull Request #3451 · microsoft/apm ConversationDescriptionWhat this PR doesRefactors 40 test-smell occurrences detected by the TEMPY tool in
(41 commits in total: one extra commit reuses a helper introduced by the previous one.) WhyTest smells make tests harder to read and maintain, and some hide real problems: a manual How it was tested
Notes for the reviewer
Issue and approved scopeIssue: #3450 This is an unsolicited contribution proposed in #3450. Does this PR complete the issue, or what remains? It completes the issue. Type of change
Testing
Spec conformance (OpenAPM v0.1)
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions…l (Unknown Test) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> … Test) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Co-Authored-By: Claude Sonnet 5.5 <[email protected]> …ot_skips_lockfile (Unknown Test) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Co-Authored-By: Claude Sonnet 5.5 <[email protected]> …_skips_missing_dir (Unknown Test) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> …wn Test) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> …nown Test) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> …_github_token_sources (Conditional Test Logic) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> …fe_basic_header (Conditional Test Logic) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> …t_emits_once (Conditional Test Logic) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> … test_hierarchical_coverage_verification (Conditional Test Logic) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> …constraint_priority_over_efficiency (Conditional Test Logic) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> …rget (Conditional Test Logic) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> …d_methods (Conditional Test Logic) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> …eneric_hooks_universal (Conditional Test Logic) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> …ub_file_fetch_uses_one_scoped_fallback (Conditional Test Logic) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> …_clone_resolves_one_path_scoped_fallback (Conditional Test Logic) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> …itive_has_dispatch_path (Conditional Test Logic) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> …py (test_resolve_prompt_file_local_exists) …py (test_resolve_prompt_file_dependency_root) …py (test_resolve_prompt_file_dependency_subdirectory) …py (test_resolve_prompt_file_multiple_dependencies) …py (test_resolve_prompt_file_no_apm_modules) …tegrator_hermetic.py …tegrator_phase3w4.py …tegrator.py (test_native_skill_preserves_complete_structure) …tegrator.py (test_force_overwrites_identical_bin) …che.py (test_short_sha_skips_tier1_and_resolves_via_tier2) …egrator.py (test_stale_sidecar_removed_on_sync) …egrator_defect_regression.py …che.py (test_bare_action_rmtrees_target_before_init) …che.py (test_fetch_action_uses_explicit_url_not_origin) …egrator.py (test_root_local_healer_preserves_dependency_source_entries)
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 Changes recommendedThe changes introduce an import-order violation and whitespace on blank lines that fail the required Ruff lint and format checks. 2 open issuesWhat changed in this PRThis test-only refactor addresses the 40 test-smell occurrences proposed in #3450 across 21 files. It simplifies APM's test setup and strengthens selected assertions without changing production code. Changes:
Review effort: Balanced
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. This branch has not been deployedNo deployments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reviewers
Copilot code review
Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
At least 0 approving reviews are required to merge this pull request. Uh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
area/testing
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |