Comments (2)
There's a slight issue with including tests using a selector. In some sense the loading of packages happens before the selector is applied. https://github.com/loov/goda/blob/master/internal/pkgset/context.go#L64
There would also be a need to select "tests only" and packages with tests.
It certainly could be special-cased in terms of loading. i.e. if the expression contains :test
then add the tests to the loading context.
Alternatively adding :test
could "reload" the whole previous packages with tests included.
pkg:all:test -- load tests for all packages
pkg:test:all -- load all dependencies for `pkg` tests
But this makes it slightly awkward to load pkg+test.
Maybe the syntax needs to be extended to support something like pkg+:test
?
from goda.
Maybe the latter syntax example should be :<op><selector>
, then you can write:
pkg:+test
pkg:-test
pkg:-source
pkg:+imp
from goda.
Related Issues (20)
- Allow removing transitive edges
- help: write documentation about `-f` (templates) HOT 1
- graph: collapsing modules, internal and arbitrary keywords HOT 2
- Use tabwriter in output HOT 1
- Add "goda why" or similar command HOT 4
- stat: add `ModuleCount`
- graph: add node sizing and coloring
- graph: add digraph format (mod graph)
- graph: dark mode
- expr: provide a way to select main packages HOT 1
- avoid test packages in cut output HOT 1
- Exclude several URLs HOT 1
- expr: support `()` as empty package set
- README needs updating HOT 1
- Include version information on packages/modules HOT 10
- panic: runtime error: invalid memory address or nil pointer dereference HOT 3
- internal/pkgset: avoid loading all std packages
- goda weight: unable to find type in sym HOT 2
- goda complains about needing a go mod tidy that is never enough HOT 2
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 goda.