sidlatau / neotest-dart

30 stars 8 forks source link

Running tests should run the command in the package, not the currently opened neovim workspace. #20

Open rafaeltab opened 1 month ago

rafaeltab commented 1 month ago

I have a monorepo that looks like this:

apps
  my-app
packages
  some-package

When running a test in either /apps/my-app or /packages/some-package it tries to run flutter in the root / of the repository.

Scenario

Test is run in a file /packages/some-package/test/some/cool_test.dart

Expected

flutter is run in /packages/some-package

Actual

flutter is run in /

Which fails, because flutter can't find a pubspec file.