Giter VIP home page Giter VIP logo

Comments (9)

StefanKarpinski avatar StefanKarpinski commented on August 26, 2024

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.

KristofferC avatar KristofferC commented on August 26, 2024

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.

StefanKarpinski avatar StefanKarpinski commented on August 26, 2024

To see if everything is working. How would you expect it to work?

from pkg.jl.

KristofferC avatar KristofferC commented on August 26, 2024

Same as Pkg.test("Package") works except it is spelled pkg> test Package

from pkg.jl.

StefanKarpinski avatar StefanKarpinski commented on August 26, 2024

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.

KristofferC avatar KristofferC commented on August 26, 2024

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.

KristofferC avatar KristofferC commented on August 26, 2024

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.

tpapp avatar tpapp commented on August 26, 2024

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.

KristofferC avatar KristofferC commented on August 26, 2024

Yes, this will work with local packages. There is no difference really. Test-dependencies are now supported.

from pkg.jl.

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.