GithubHelp home page GithubHelp logo

Cannot run spec tests about neotest-go HOT 3 OPEN

nvim-neotest avatar nvim-neotest commented on August 10, 2024
Cannot run spec tests

from neotest-go.

Comments (3)

sergii4 avatar sergii4 commented on August 10, 2024

To be honest, I have no idea what's going on. Minimal config to reproduce as well as steps would be really helpful. Without it there is no point to discuss it. Moreover, I am not sure it's a plugin issue

from neotest-go.

lawrence-laz avatar lawrence-laz commented on August 10, 2024

I mean I was trying to run tests in this repo:
Input:

git clone https://github.com/nvim-neotest/neotest-go.git
cd neotest-go
nvim --headless -c "PlenaryBustedDirectory lua/spec/neotest-go { }" || echo "some tests failed"

Output:

Starting...Scheduling: lua/spec/neotest-go/init_spec.lua
Scheduling: lua/spec/neotest-go/utils_spec.lua
some tests failed

The test fails because it cannot find nio package (can be seen in the screenshot above), although :lua =require'nio' executes and finds the said package without problems.

I've also read that plenary test harness runs tests in a separate nvim instance without plugins by default? So that's probably the issue I'm facing. I assume that I am running these tests incorrectly.

How do you execute tests in neotest-go/lua/spec/neotest-go/init_spec.lua from this repo?

from neotest-go.

jstensland avatar jstensland commented on August 10, 2024

I was able to run them with

nvim --headless -c ':PlenaryBustedDirectory lua/spec'

and this was recently added to the README. Your command also works for me though, fwiw.

But... I did hit this nio issue too actually, but I can't for the life of me remember what change fixed it, and I was new to setting up any plenary busted tests at all. I'll post back if I can repro that previous failure

from neotest-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.