Add stdlib/@tests? #11762
Copy link
Copy link
Closed
Labels
project: infrastructuretypeshed build, test, or distribution relatedtypeshed build, test, or distribution related
Description
There's a slight inconsistency that's been bugging me: Third-party stubs – sensibly – can have a @tests directory, which contains the stubtest allowlists and regression tests. On the other hand, the allowlists for the standard library are in tests/stubtest_allowlists and the test cases in test_cases/stdlib. (The test_cases directory is otherwise empty, except for a README file.) For consistency's sake and easier discoverability, I suggest we add a stdlib/@tests directory with the same structure as the corresponding stubs/*/@tests directories and move the existing files there.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
project: infrastructuretypeshed build, test, or distribution relatedtypeshed build, test, or distribution related
Activity
srittau commentedon Apr 14, 2024
Type checker authors would be encouraged to omit that directory from their distributions, although I don't see harm in including it.
Unify test directory handling
Unify test directory handling (#11864)
Unify allowlist handling
Ignore typeshed test files (#17249)