You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+38Lines changed: 38 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -117,6 +117,44 @@ In order to debug modules in `.exs` files (such as tests), they must be specifie
117
117
}
118
118
```
119
119
120
+
In order to debug a single test or a single test file it is currently necessary to modify `taskArgs` and make sure no other tests are requred in `requireFiles`.
121
+
122
+
```
123
+
{
124
+
"type": "mix_task",
125
+
"name": "mix test",
126
+
"request": "launch",
127
+
"task": "test",
128
+
"taskArgs": ["tests/some_test.exs:123"],
129
+
"projectDir": "${workspaceRoot}",
130
+
"requireFiles": [
131
+
"test/**/test_helper.exs",
132
+
"test/some_test.exs"
133
+
]
134
+
}
135
+
```
136
+
137
+
Please note that due to `:int` limitation NIF modules cannot be interpreted and need to be excluded via `excludeModules` option. This option can be also used to disable interpreting for some modules when it is not desirable e.g. when performance is not satisfactory.
138
+
139
+
```
140
+
{
141
+
"type": "mix_task",
142
+
"name": "mix test",
143
+
"request": "launch",
144
+
"task": "test",
145
+
"taskArgs": ["--trace"],
146
+
"projectDir": "${workspaceRoot}",
147
+
"requireFiles": [
148
+
"test/**/test_helper.exs",
149
+
"test/**/*_test.exs"
150
+
],
151
+
"excludeModules": [
152
+
":some_nif",
153
+
"Some.SlowModule"
154
+
]
155
+
}
156
+
```
157
+
120
158
## Automatic builds and error reporting
121
159
122
160
Builds are performed automatically when files are saved. If you want this to happen automatically when you type, you can turn on "autosave" in your IDE.
0 commit comments