vim-test / vim-test/vim-test

How to change TestNearest values?

Open
#569 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vim Script
Stars
3.2k
Forks
411
Avg merge
1h 30m
Merged PRs (30d)
5

Description

I am using docker to run Laravel so I configure locally

let g:test#php#phpunit#executable = 'docker-compose run --rm artisan test'

The problem is that when I run :TestNearest, I get the following error, cannot open the file
image

When executing this command I get that error.

docker-compose run --rm artisan test --colors --filter='::testBasicTest' src/tests/Feature/ExampleTest.php 

I am reading the document and the transformations may be useful, but I have a hard time understanding it completely 😅
Is there a way to change the parameters of :TestNearest to one of the options in the image?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with vim-test's documentation on transformations and the phpunit executable configuration, then reproduce the reported :TestNearest command using the shown docker-compose setup. Determine whether the requested arguments can be configured and define the supported behavior or documentation change needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker-compose, laravel, php, vim
Domain
testing, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.