Use a file system abstraction #2297
Labels
P2
A bug or feature request we're likely to work on
type-tech-debt
Issues that slow or block desirable development paths for Dartdoc, or create such problems for users
This is required for making the integration tests smaller, and will encourage better testing. Currently, the dartdoc repository exclusively uses real file system APIs like
Directory()
from dart:io. It should instead use an abstraction, likepackage:file
, or ResourceProvider from analyzer. I vote ResourceProvider. Then PhysicalResourceProvider is used in real code, and MemoryResourceProvider is used in tests.The text was updated successfully, but these errors were encountered: