-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restructure directories to conform to style guide #1516
Comments
#1484 has a discussion whether we need regression tests (organized by issue, not by the feature they test) in the repository as well. |
Thanks for the context. My personal opinion is that regression tests should be added to the feature, so that over time the feature specs become more robust. Regardless, the bulk of reorganization can be done without touching the regression tests, so I think this work should proceed in parallel. |
Thank you. Yes, I fully agree that there is enough work to be done in the spec (feature) tests alone. |
Here's a first pass at a new structure for Current Top-Level Directories
Don't Need Reorganization
Need ReorganizationMove the following redundant directories into existing directories
Move the following generic specs into the feature that they actually test
New top-level directories
Rename parser/ to syntax/, then move files into it
Proposed Directory Structure
|
I'm struggling most with the somewhat generic |
Something to consider is how we track tests that we think conform well to the style guide versus those that do not. Right now, we can rely on the top-level directories as a signal here—the directories under "doesn't need reorg" are all new directories that generally follow the style guide, and the older directories generally do not. But if we want to move existing specs into a better directory structure before we style-guide-ify them, we'll need another signal to track things like "how many specs are following the style guide?" and "where are specs that aren't following the style guide and thus need fixing?" One option would be to design an ideal directory structure in this issue, but continue to only actually put files into it as they go through the style-guide-ification process.
Mostly SGTM, although I think the media import tests should live in
SGTM
Does it make sense to make Should
What are you envisioning would fall under "syntax" as opposed to any other category? It seems like kind of a catch-all. What about specs that only make sense in one syntax or the other? (Vagaries of indentation for the indented syntax, semicolons and brackets for SCSS) |
Maybe some conformance level indicator in the A tool proposed in #1517 could extract and report them. |
I like this option.
Since we have to inspect each file to determine if it's compliant, I'd prefer to put all old specs into a non-conformant bucket. We could pull each spec out as it gets style-guide-ified. The repo would look like
with the goal of emptying
Probably not. The scoping tests can be spread out across all constructs that affect scope.
SGTM.
It's definitely a catch-all for specs that test syntax errors but don't quite fit into a feature area. On second thought, I want to keep this as
The following specs that currently exist in
Second draft:
|
That mostly looks good, but I have a few more questions:
|
The directory structure has grown organically over time, and as such does not completely adhere to the recommendations set in the style guide.
For example, some directories have generic names that don't describe their function (
basic/
,misc/
, etc). Some are redundant and could be combined with other directories (colors/
,mixin/
,operations/
, etc). Some files are at root and could be reorganized into sub-directories.We should decide on an ideal directory structure, and move specs into that structure.
The text was updated successfully, but these errors were encountered: