https://github.com/davidmh/neotest-rspec-monorepo-example
https://github.com/davidmh/neotest-rspec-monorepo-example
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/davidmh/neotest-rspec-monorepo-example
- Owner: davidmh
- Created: 2024-01-11T22:41:45.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-11T22:52:15.000Z (over 1 year ago)
- Last Synced: 2025-03-06T05:08:37.758Z (4 months ago)
- Language: Lua
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Minimal config to debug neotest on monorepos
While setting up [neotest-rspec] in a monorepo, I noticed the tests would always run the rspec command from the root directory, which also includes a `Gemfile`.
To test the issue:
1. `cd service-a/ && bundle install && cd ..`
2. `nvim -u minimal-init.lua service-a/spec/minimal_spec.rb`
3. Run the tests using the summaryThe test fails saying that the rspec gem couldn't be found in the Gemfile.
The problem goes away when the current working directory is `service-a/`
1. `cd service-a/`
2. `nvim -u ../minimal-init.la spec/minimal_spec.rb`
3. `:Neotest run`
4. Success!