Comments (4)
Sorry if I'm not clear. I'll try again. Overall, is it possible to run a single package's tests? If you have a folder structure like
pkg1
├── subpkg2
│ ├── file3.go
│ ├── file3_test.go
│ └── export_test.go
├── file1.go
├── file1_test.go
├── file2.go
└── file2_test.go
Is there a neotest command I can run that will run the tests in pkg1/file1_test.go
and pkg1/file2_test.go
but not those in pkg1/subpkg2/file3_test.go
?
Steps to reproduce would be to set up such a structure. Include a failing or broken test in subpkg2
, and then try do: require('neotest').run.run("pkg1")
. Expected result would be a pass for pkg1, but instead you get failures from subpkg2
It is running both pkg1
tests and subpkg2
tests. See my first comment for the type of final command it ends up running, with the ./...
that catches all sub folders.
from neotest-go.
Up. We should stick to the behaviour of go test
and not recurse a directory unless a glob pattern is provided.
from neotest-go.
Hi @jstensland, I am not sure I understand the problem. How is related to the plugin? What's steps to reproduce?
from neotest-go.
You are right, folks. I am working on PR
from neotest-go.
Related Issues (20)
- [feature request] Table-driven tests written as map[string]struct{} HOT 5
- Neotest Summary window is showing incorrect status HOT 2
- nil error on test single function HOT 5
- Error while testing a file/directory with failed test cases HOT 1
- 'No tests found' using minimal config HOT 40
- Test Output in JSON, making it difficult to read HOT 30
- Tests having warnings are marked as failed HOT 2
- Test coverage generation is not working properly due to cwd being changed to the test file directory. HOT 9
- Query: invalid structure at position 1288 for language go
- how to add test binary flags
- Cannot run spec tests HOT 3
- No Tests Found HOT 2
- Neotest-go not compatible with Go provided via pkgx HOT 1
- cannot run unit tests HOT 1
- neotest-go adapter being used for typescript files when repo has both typescript and go HOT 1
- Feat - Add Support for Nested Subtests
- Feature request: Add diagnostics for table tests. HOT 2
- Error with Neotest-go, subtests and skipping them. HOT 6
- "Run nearest" runs all tests HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neotest-go.