Comments (9)
I think the first step is just to duplicate existing Pkg.test
as a pkg> test
command. Behavior: by default (no arguments) test all packages in the current manifest; if names are given test those packages and their dependencies; maybe a --deps=[no|yes]
option to control whether or not to test dependencies or not. Does that seems like a sane interface? Want to work on it?
from pkg.jl.
Why would you want to test the dependencies of your package? Presumably you are working under the assumption that those are working correctly?
from pkg.jl.
To see if everything is working. How would you expect it to work?
from pkg.jl.
Same as Pkg.test("Package")
works except it is spelled pkg> test Package
from pkg.jl.
Ok, fair enough. In that case there should be a [-r|--recursive]
option that tests all recursive dependencies of the listed packages as well. What would pkg> test
by itself do? Maybe pkg> test
can test the current project? Then pkg> test -r
would be a natural way to test everything.
We probably also want to think a bit about syntax for filtering tests, but maybe that can wait for another day. pkg> test --filter=...
comes to mind, applying to all the following package names.
from pkg.jl.
Recursive dependency testing is a good idea.
Getting to feature parity with Pkg2 (being able to just test one package) seems like a good starting point.
from pkg.jl.
Implemented the basic stuff in #33, what is lacking to get up to Pkg2.test is to resolve the dependencies and test only dependencies and for that we need to determine how a package should store that information.
from pkg.jl.
Will one be able to use this framework for "local" packages? Currently I am using a hack for this, and I was hoping this would be obsoleted by Pkg3
; or lacking that, some hook would be available to maintain this functionality.
from pkg.jl.
Yes, this will work with local packages. There is no difference really. Test-dependencies are now supported.
from pkg.jl.
Related Issues (20)
- very unsound assumptions about REPL state injection HOT 5
- nested task error: ArgumentError: Number of elements must be nonnegative HOT 1
- Docstring for `Registry`
- Bad resolution for SHA in manager
- Improvements to registry status outputs HOT 1
- Pkg tests puts an outdated copy of `General` in `usr/share/registries`
- Dont overload `zero` for `VersionWeight`
- Hide unnecessary internal Pkg stack traces in test logs HOT 2
- `status` can error when the RHS in `[extensions]` does not map to a weak dep HOT 1
- Document two new ways of specifying test-specific dependencies
- Weird syntax highlighting in docstrings HOT 3
- `Suggestions` when doing `up` show when there are none on v1.11
- Manifest usage log error should be non-fatal
- Add back support for full VersionNumbers to the resolver
- Pkg CI does a lot of re-precompiling stdlibs HOT 2
- Pkg.jl needs compat bounds on julia
- Adding package from pull request URL HOT 4
- Download bar is behaving erratically. Repeated downloads? HOT 1
- [1.10] `precompile` silently dies due to `SystemError` when opening `.ji` files HOT 1
- Add `projectdir` function to Pkg.jl? HOT 3
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 pkg.jl.