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
{{ message }}
Repository navigation
Commit 408aee7
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: NEOTEST.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,8 @@ end
54
54
Note: if `vim.g.test_root` is not set, we will default to using either the output of `require('project').get_project_root()` or `vim.fn.getcwd()` as fallbacks.
55
55
56
56
## 2. Monorepo Services (Mocha + NPM Workspaces)
57
-
**Structure:**`services/{service_name}/.../{file}.{spec|integration|e2e}.ts`**Behavior**: Maps `spec` to `unit` and executes the specific workspace script.
**Behavior**: Maps `spec` to `unit` and executes the specific workspace script.
58
59
59
60
```lua
60
61
-- luacheck: globals vim
@@ -99,7 +100,8 @@ end
99
100
```
100
101
101
102
## 3. Neovim Plugin (luarocks + busted + nlua)
102
-
**Structure:**`tests/.../{file}_spec.lua`, with locally installed `busted` and `nlua` via `luarocks`**Hint:** run `luarocks test --prepare` in the root of the project to setup environment
103
+
**Structure:**`tests/.../{file}_spec.lua`, with locally installed `busted` and `nlua` via `luarocks`\
104
+
**Hint:** run `luarocks init --lua-version 5.1 && eval $(luarocks path) && luarocks test --prepare` in the root of the project to setup environment
0 commit comments