ampproject / ampproject/amphtml

Do not allow test files to import files that have their own test cases

Open
#35,288 1 comment 0 reactions 0 assignees View on GitHub
P3: When Possible Stale Type: Testing WG: infra
Dominant language
JavaScript
Stars
14.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

When parallelizing test runs based on file names, some test cases execute in multiple shards because they get imported by other files. This issue tracks the effort to disallow the import of test cases from other test cases (example of such a situation in the first mention of this issue)

Contributor guide

Open the contributing guide

Research direction

Start with the example in the first mention of this issue and trace how test files import one another and how file-name-based sharding discovers tests. Identify the test-runner or validation entry point involved; done means imports of test cases from other test files are rejected so cases are not duplicated across shards.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
testing
Issue type
Feature
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.