Closed heimer16 closed 1 year ago
also replicated using the ExampleTest.php in this repo:
Adding a test called "this_should_fail_as_well" is also run when running "this_should_fail"
Can you send over the Neotest logfile for ExampleTest.php
?
Sure. I'm not too familiar. Where would that be stored? Would I need to enable any logging in neotest first to generate this file? Thanks!
I am currently having this issue as well.
Running the nearest test seems to run all the tests that start with "testModelSelect", for example.
Thanks!
Same answer as before...I'll need the log files before I could start looking into this
Could you please tell me where the log file is located?
My bad, I found the log file located here ~/.local/state/nvim/neotest.log
It is currently empty, so I imagine I'd have to modify the log level for neotest? I will try to do that and provide the log asap.
INFO | 2023-04-19T14:58:24Z-0600 | ...ocal/share/nvim/lazy/neotest/lua/neotest/config/init.lua:305 | Configuration complete
INFO | 2023-04-19T14:58:30Z-0600 | ...l/share/nvim/lazy/neotest/lua/neotest/lib/subprocess.lua:33 | Starting child process
INFO | 2023-04-19T14:58:30Z-0600 | ...l/share/nvim/lazy/neotest/lua/neotest/lib/subprocess.lua:36 | Parent address: localhost:44569
INFO | 2023-04-19T14:58:30Z-0600 | ...l/share/nvim/lazy/neotest/lua/neotest/lib/subprocess.lua:42 | Starting child process with command: /usr/bin/nvim --embed --headless
INFO | 2023-04-19T14:58:30Z-0600 | ...ocal/share/nvim/lazy/neotest/lua/neotest/config/init.lua:305 | Configuration complete
INFO | 2023-04-19T14:58:31Z-0600 | ...l/share/nvim/lazy/neotest/lua/neotest/lib/subprocess.lua:83 | CHILD | Connected to parent instance
INFO | 2023-04-19T14:58:31Z-0600 | ...ocal/share/nvim/lazy/neotest/lua/neotest/client/init.lua:380 | Initialising client
INFO | 2023-04-19T14:58:31Z-0600 | ...are/nvim/lazy/neotest/lua/neotest/client/events/init.lua:48 | Emitting starting event
INFO | 2023-04-19T14:58:31Z-0600 | ...al/share/nvim/lazy/neotest/lua/neotest/adapters/init.lua:18 | Found 1 adapters for directory /home/whleucka/Projects/constellation
INFO | 2023-04-19T14:58:31Z-0600 | ...ocal/share/nvim/lazy/neotest/lua/neotest/client/init.lua:281 | Searching /home/whleucka/Projects/constellation for test files
INFO | 2023-04-19T14:58:32Z-0600 | ...are/nvim/lazy/neotest/lua/neotest/client/events/init.lua:48 | Emitting discover_positions event
INFO | 2023-04-19T14:58:32Z-0600 | ...ocal/share/nvim/lazy/neotest/lua/neotest/client/init.lua:327 | Discovering files with 12 workers
INFO | 2023-04-19T14:58:32Z-0600 | ...ocal/share/nvim/lazy/neotest/lua/neotest/client/init.lua:301 | Parsing /home/whleucka/Projects/constellation/tests/Container/ContainerTest.php
INFO | 2023-04-19T14:58:32Z-0600 | ...l/share/nvim/lazy/neotest/lua/neotest/lib/subprocess.lua:150 | CHILD | Received remote call 1 <function 1>
INFO | 2023-04-19T14:58:32Z-0600 | ...ocal/share/nvim/lazy/neotest/lua/neotest/client/init.lua:301 | Parsing /home/whleucka/Projects/constellation/tests/Database/SchemaTest.php
INFO | 2023-04-19T14:58:32Z-0600 | ...l/share/nvim/lazy/neotest/lua/neotest/lib/subprocess.lua:150 | CHILD | Received remote call 2 <function 1>
INFO | 2023-04-19T14:58:32Z-0600 | ...ocal/share/nvim/lazy/neotest/lua/neotest/client/init.lua:301 | Parsing /home/whleucka/Projects/constellation/tests/Routing/RouterTest.php
INFO | 2023-04-19T14:58:32Z-0600 | ...l/share/nvim/lazy/neotest/lua/neotest/lib/subprocess.lua:150 | CHILD | Received remote call 3 <function 1>
INFO | 2023-04-19T14:58:32Z-0600 | ...ocal/share/nvim/lazy/neotest/lua/neotest/client/init.lua:301 | Parsing /home/whleucka/Projects/constellation/tests/Model/ModelTest.php
INFO | 2023-04-19T14:58:32Z-0600 | ...l/share/nvim/lazy/neotest/lua/neotest/lib/subprocess.lua:150 | CHILD | Received remote call 4 <function 1>
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Container/ContainerTest.php" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Container/ContainerTest.php::13" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Container/ContainerTest.php" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Container/ContainerTest.php::15" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Container/ContainerTest.php" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Container/ContainerTest.php::27" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Container/ContainerTest.php" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Container/ContainerTest.php::37" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Container/ContainerTest.php" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Container/ContainerTest.php::46" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Container/ContainerTest.php" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Container/ContainerTest.php::56" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Container/ContainerTest.php" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Container/ContainerTest.php::119" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Container/ContainerTest.php" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Container/ContainerTest.php::134" }
INFO | 2023-04-19T14:58:32Z-0600 | ...are/nvim/lazy/neotest/lua/neotest/client/events/init.lua:48 | Emitting discover_positions event
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Database/SchemaTest.php" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Database/SchemaTest.php::14" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Database/SchemaTest.php" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Database/SchemaTest.php::16" }
INFO | 2023-04-19T14:58:32Z-0600 | ...are/nvim/lazy/neotest/lua/neotest/client/events/init.lua:48 | Emitting discover_positions event
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Routing/RouterTest.php" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Routing/RouterTest.php::18" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Routing/RouterTest.php" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Routing/RouterTest.php::35" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Routing/RouterTest.php" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Routing/RouterTest.php::60" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Routing/RouterTest.php" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Routing/RouterTest.php::68" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Routing/RouterTest.php" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Routing/RouterTest.php::76" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Routing/RouterTest.php" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Routing/RouterTest.php::93" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Routing/RouterTest.php" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Routing/RouterTest.php::107" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Routing/RouterTest.php" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Routing/RouterTest.php::113" }
INFO | 2023-04-19T14:58:32Z-0600 | ...are/nvim/lazy/neotest/lua/neotest/client/events/init.lua:48 | Emitting discover_positions event
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::13" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::24" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::44" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::50" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::62" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::71" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::82" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::91" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::100" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::109" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::118" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::124" }
INFO | 2023-04-19T14:58:32Z-0600 | ...are/nvim/lazy/neotest/lua/neotest/client/events/init.lua:48 | Emitting discover_positions event
INFO | 2023-04-19T14:58:32Z-0600 | ...ocal/share/nvim/lazy/neotest/lua/neotest/client/init.lua:481 | Initialisation finished in 0.194 seconds
INFO | 2023-04-19T14:58:32Z-0600 | ...are/nvim/lazy/neotest/lua/neotest/client/events/init.lua:48 | Emitting test_file_focused event
INFO | 2023-04-19T14:58:32Z-0600 | ...are/nvim/lazy/neotest/lua/neotest/client/events/init.lua:48 | Emitting started event
INFO | 2023-04-19T14:58:32Z-0600 | ...are/nvim/lazy/neotest/lua/neotest/client/events/init.lua:48 | Emitting run event
INFO | 2023-04-19T14:58:32Z-0600 | ...nvim/lazy/neotest/lua/neotest/client/strategies/init.lua:34 | Starting process neotest-phpunit:/home/whleucka/Projects/constellation-/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::44 with strategy integrated
INFO | 2023-04-19T14:58:32Z-0600 | ...nvim/lazy/neotest/lua/neotest/client/strategies/init.lua:54 | Process for position neotest-phpunit:/home/whleucka/Projects/constellation-/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::44 exited with code 0
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:61 | PHPUnit id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::44" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:61 | PHPUnit id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::50" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:61 | PHPUnit id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::62" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:61 | PHPUnit id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::71" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:61 | PHPUnit id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::82" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:61 | PHPUnit id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::91" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:61 | PHPUnit id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::100" }
INFO | 2023-04-19T14:58:32Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:61 | PHPUnit id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::109" }
INFO | 2023-04-19T14:58:32Z-0600 | ...are/nvim/lazy/neotest/lua/neotest/client/events/init.lua:48 | Emitting results event
INFO | 2023-04-19T14:58:32Z-0600 | ...are/nvim/lazy/neotest/lua/neotest/client/events/init.lua:48 | Emitting results event
INFO | 2023-04-19T14:58:36Z-0600 | ...are/nvim/lazy/neotest/lua/neotest/client/events/init.lua:48 | Emitting test_focused event
Thanks.
I've just pushed a new commit to the main
branch which has additional logging statements. When you get time could you pull that in, run the tests again and share the logs?
I suspect it's something to do with how I'm using the --filter
option in PHPUnit.
Hi, jumping back in here. I checked out the latest master branch. I just modified the ExampleTest.php
in this repo by adding test_this_should_fail_as_well
and ran :lua require("neotest").run.run()
on test_this_should_fail
this is what I get in my neotest.log
It seems --filter does pattern matching, so seems that is why it's picking up multiple.
https://docs.phpunit.de/en/9.6/textui.html?highlight=filter#command-line-options
I also tried testing on the command line and it does seem to match multiple.
/e/git/neotest-phpunit
➤_ phpunit --filter test_this_should_fail
PHPUnit 9.6.6 by Sebastian Bergmann and contributors.
FF 2 / 2 (100%)
Time: 00:00.019, Memory: 6.00 MB
There were 2 failures:
1) ExampleTest::test_this_should_fail
Failed asserting that false is true.
/e/git/neotest-phpunit/tests/Unit/ExampleTest.php:15
2) ExampleTest::test_this_should_fail_as_well
Failed asserting that false is true.
/e/git/neotest-phpunit/tests/Unit/ExampleTest.php:32
FAILURES!
Tests: 2, Assertions: 2, Failures: 2.
just as a simple test, adding '$' at the end of the filter string does limit the match to the correct test.
/e/git/neotest-phpunit
➤_ phpunit --filter test_this_should_fail$
PHPUnit 9.6.6 by Sebastian Bergmann and contributors.
F 1 / 1 (100%)
Time: 00:00.001, Memory: 6.00 MB
There was 1 failure:
1) ExampleTest::test_this_should_fail
Failed asserting that false is true.
/e/git/neotest-phpunit/tests/Unit/ExampleTest.php:15
FAILURES!
Tests: 1, Assertions: 1, Failures: 1.
I looked up the code in the sublime text phpunit plugin to see what they are doing some regex so that may provide some insight: https://github.com/gerardroche/sublime-phpunit/blob/master/plugin.py#L520
... not sure I understand the context behind the "with data set", but may be worth looking into and including
... as a side note, I get an error message running phpunit on the command line so had to remove the Feature testsuite in the phpunit.xml file. Maybe I'll create a PR for that when I get a sec.
Test directory "/e/git/neotest-phpunit/./tests/Feature" not found
Here it is
INFO | 2023-04-19T18:25:41Z-0600 | ...ocal/share/nvim/lazy/neotest/lua/neotest/config/init.lua:305 | Configuration complete
INFO | 2023-04-19T18:25:52Z-0600 | ...l/share/nvim/lazy/neotest/lua/neotest/lib/subprocess.lua:33 | Starting child process
INFO | 2023-04-19T18:25:52Z-0600 | ...l/share/nvim/lazy/neotest/lua/neotest/lib/subprocess.lua:36 | Parent address: localhost:33727
INFO | 2023-04-19T18:25:52Z-0600 | ...l/share/nvim/lazy/neotest/lua/neotest/lib/subprocess.lua:42 | Starting child process with command: /usr/bin/nvim --embed --headless
INFO | 2023-04-19T18:25:52Z-0600 | ...ocal/share/nvim/lazy/neotest/lua/neotest/config/init.lua:305 | Configuration complete
INFO | 2023-04-19T18:25:53Z-0600 | ...l/share/nvim/lazy/neotest/lua/neotest/lib/subprocess.lua:83 | CHILD | Connected to parent instance
INFO | 2023-04-19T18:25:53Z-0600 | ...ocal/share/nvim/lazy/neotest/lua/neotest/client/init.lua:380 | Initialising client
INFO | 2023-04-19T18:25:53Z-0600 | ...are/nvim/lazy/neotest/lua/neotest/client/events/init.lua:48 | Emitting starting event
INFO | 2023-04-19T18:25:53Z-0600 | ...al/share/nvim/lazy/neotest/lua/neotest/adapters/init.lua:18 | Found 1 adapters for directory /home/whleucka/Projects/constellation
INFO | 2023-04-19T18:25:53Z-0600 | ...ocal/share/nvim/lazy/neotest/lua/neotest/client/init.lua:281 | Searching /home/whleucka/Projects/constellation for test files
INFO | 2023-04-19T18:25:53Z-0600 | ...are/nvim/lazy/neotest/lua/neotest/client/events/init.lua:48 | Emitting discover_positions event
INFO | 2023-04-19T18:25:53Z-0600 | ...ocal/share/nvim/lazy/neotest/lua/neotest/client/init.lua:327 | Discovering files with 12 workers
INFO | 2023-04-19T18:25:53Z-0600 | ...ocal/share/nvim/lazy/neotest/lua/neotest/client/init.lua:301 | Parsing /home/whleucka/Projects/constellation/tests/Container/ContainerTest.php
INFO | 2023-04-19T18:25:53Z-0600 | ...l/share/nvim/lazy/neotest/lua/neotest/lib/subprocess.lua:150 | CHILD | Received remote call 1 <function 1>
INFO | 2023-04-19T18:25:53Z-0600 | ...ocal/share/nvim/lazy/neotest/lua/neotest/client/init.lua:301 | Parsing /home/whleucka/Projects/constellation/tests/Database/SchemaTest.php
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Container/ContainerTest.php" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Container/ContainerTest.php::13" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Container/ContainerTest.php" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Container/ContainerTest.php::15" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Container/ContainerTest.php" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Container/ContainerTest.php::27" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Container/ContainerTest.php" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Container/ContainerTest.php::37" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Container/ContainerTest.php" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Container/ContainerTest.php::46" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Container/ContainerTest.php" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Container/ContainerTest.php::56" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Container/ContainerTest.php" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Container/ContainerTest.php::119" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Container/ContainerTest.php" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Container/ContainerTest.php::134" }
INFO | 2023-04-19T18:25:53Z-0600 | ...l/share/nvim/lazy/neotest/lua/neotest/lib/subprocess.lua:150 | CHILD | Received remote call 2 <function 1>
INFO | 2023-04-19T18:25:53Z-0600 | ...ocal/share/nvim/lazy/neotest/lua/neotest/client/init.lua:301 | Parsing /home/whleucka/Projects/constellation/tests/Routing/RouterTest.php
INFO | 2023-04-19T18:25:53Z-0600 | ...l/share/nvim/lazy/neotest/lua/neotest/lib/subprocess.lua:150 | CHILD | Received remote call 3 <function 1>
INFO | 2023-04-19T18:25:53Z-0600 | ...ocal/share/nvim/lazy/neotest/lua/neotest/client/init.lua:301 | Parsing /home/whleucka/Projects/constellation/tests/Model/ModelTest.php
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Database/SchemaTest.php" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Database/SchemaTest.php::14" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Database/SchemaTest.php" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Database/SchemaTest.php::16" }
INFO | 2023-04-19T18:25:53Z-0600 | ...l/share/nvim/lazy/neotest/lua/neotest/lib/subprocess.lua:150 | CHILD | Received remote call 4 <function 1>
INFO | 2023-04-19T18:25:53Z-0600 | ...are/nvim/lazy/neotest/lua/neotest/client/events/init.lua:48 | Emitting discover_positions event
INFO | 2023-04-19T18:25:53Z-0600 | ...are/nvim/lazy/neotest/lua/neotest/client/events/init.lua:48 | Emitting discover_positions event
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Routing/RouterTest.php" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Routing/RouterTest.php::18" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Routing/RouterTest.php" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Routing/RouterTest.php::35" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Routing/RouterTest.php" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Routing/RouterTest.php::60" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Routing/RouterTest.php" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Routing/RouterTest.php::68" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Routing/RouterTest.php" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Routing/RouterTest.php::76" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Routing/RouterTest.php" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Routing/RouterTest.php::93" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Routing/RouterTest.php" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Routing/RouterTest.php::107" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Routing/RouterTest.php" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Routing/RouterTest.php::113" }
INFO | 2023-04-19T18:25:53Z-0600 | ...are/nvim/lazy/neotest/lua/neotest/client/events/init.lua:48 | Emitting discover_positions event
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::13" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::24" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::44" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::50" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::62" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::71" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::82" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::91" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::100" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::109" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::118" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:14 | CHILD | Path to test file: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:15 | CHILD | Treesitter id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::124" }
INFO | 2023-04-19T18:25:53Z-0600 | ...are/nvim/lazy/neotest/lua/neotest/client/events/init.lua:48 | Emitting discover_positions event
INFO | 2023-04-19T18:25:53Z-0600 | ...ocal/share/nvim/lazy/neotest/lua/neotest/client/init.lua:481 | Initialisation finished in 0.401 seconds
INFO | 2023-04-19T18:25:53Z-0600 | ...are/nvim/lazy/neotest/lua/neotest/client/events/init.lua:48 | Emitting test_file_focused event
INFO | 2023-04-19T18:25:53Z-0600 | ...are/nvim/lazy/neotest/lua/neotest/client/events/init.lua:48 | Emitting started event
INFO | 2023-04-19T18:25:53Z-0600 | ...are/nvim/lazy/neotest/lua/neotest/client/events/init.lua:48 | Emitting run event
INFO | 2023-04-19T18:25:53Z-0600 | ...e/nvim/lazy/neotest-phpunit/lua/neotest-phpunit/init.lua:88 | position.path: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php" }
INFO | 2023-04-19T18:25:53Z-0600 | ...e/nvim/lazy/neotest-phpunit/lua/neotest-phpunit/init.lua:89 | --filter position.name: { "testModelSelect" }
INFO | 2023-04-19T18:25:53Z-0600 | ...nvim/lazy/neotest/lua/neotest/client/strategies/init.lua:34 | Starting process neotest-phpunit:/home/whleucka/Projects/constellation-/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::44 with strategy integrated
INFO | 2023-04-19T18:25:53Z-0600 | ...nvim/lazy/neotest/lua/neotest/client/strategies/init.lua:54 | Process for position neotest-phpunit:/home/whleucka/Projects/constellation-/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::44 exited with code 0
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:61 | PHPUnit id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::44" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:61 | PHPUnit id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::50" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:61 | PHPUnit id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::62" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:61 | PHPUnit id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::71" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:61 | PHPUnit id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::82" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:61 | PHPUnit id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::91" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:61 | PHPUnit id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::100" }
INFO | 2023-04-19T18:25:53Z-0600 | .../nvim/lazy/neotest-phpunit/lua/neotest-phpunit/utils.lua:61 | PHPUnit id: { "/home/whleucka/Projects/constellation/tests/Model/ModelTest.php::109" }
INFO | 2023-04-19T18:25:53Z-0600 | ...are/nvim/lazy/neotest/lua/neotest/client/events/init.lua:48 | Emitting results event
INFO | 2023-04-19T18:25:53Z-0600 | ...are/nvim/lazy/neotest/lua/neotest/client/events/init.lua:48 | Emitting results event
INFO | 2023-04-19T18:25:57Z-0600 | ...are/nvim/lazy/neotest/lua/neotest/client/events/init.lua:48 | Emitting test_focused event
btw, when I rename the test case methods, everything works fine. I was unaware of the filter behaviour, but this makes sense.
Thanks both. Really appreciate the insights.
I'll take another look and see if there is a better way of running tests. We have the test name and even the line number of the file thanks to Treesitter but there must have been a reason I went with --filter
.
Closing as per fix: 501ccd74256e55fcd0a1ff10f6a2481244ab286f
When running the default "test nearest"
require("neotest").run.run()
if another test starts with the same string as the test that is run, both are run.for example:
screenshot with the status after running the first test: status indicator shows both tests were run
also on test failures, results show multiple tests were run: