Skip to content

Commit f417b8a

Browse files
alanzmeta-codesync[bot]
authored andcommitted
Tweak devmate rules to give a crate name to directory mapping
Summary: Often when devmate wants to run a test if first uses the directory name, then looks up the crate name and uses that. Hopefully this helps Reviewed By: TheGeorge Differential Revision: D85059984 fbshipit-source-id: f560f4f920545611a9a2738140688db3c6f58551
1 parent fdbb4bf commit f417b8a

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.llms/rules/elp_development.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,38 @@ Every diagnostic must have a corresponding `DiagnosticDescriptor` that defines w
124124
- Use realistic Erlang code examples in tests
125125
- Test both positive and negative cases
126126

127+
### Running Tests for Specific Crates
128+
129+
When running tests for a specific crate, you need to specify the crate name, not the directory name. The mapping is:
130+
131+
| Crate Name | Directory Name |
132+
|------------|----------------|
133+
| `elp_base_db` | `crates/base_db` |
134+
| `elp_eqwalizer` | `crates/eqwalizer` |
135+
| `elp_erlang_service` | `crates/erlang_service` |
136+
| `elp_ide` | `crates/ide` |
137+
| `elp_ide_assists` | `crates/ide_assists` |
138+
| `elp_ide_completion` | `crates/ide_completion` |
139+
| `elp_ide_db` | `crates/ide_db` |
140+
| `elp_ide_ssr` | `crates/ide_ssr` |
141+
| `elp_log` | `crates/elp_log` |
142+
| `elp_project_model` | `crates/project_model` |
143+
| `elp_syntax` | `crates/syntax` |
144+
| `elp_text_edit` | `crates/text_edit` |
145+
| `elp_types_db` | `crates/types_db` |
146+
| `hir` | `crates/hir` |
147+
| `erl_ast` | `crates/erl_ast` |
148+
149+
Example: To run tests for the `elp_ide` crate:
150+
```bash
151+
./meta/cargo.sh test -p elp_ide
152+
```
153+
154+
Or to run tests in a specific directory:
155+
```bash
156+
./meta/cargo.sh test --manifest-path crates/ide/Cargo.toml
157+
```
158+
127159
### Existing tests
128160

129161
- Do not change existing tests without asking

0 commit comments

Comments
 (0)