GithubHelp home page GithubHelp logo

testing infrastructure about jump.jl HOT 15 CLOSED

jump-dev avatar jump-dev commented on May 22, 2024
testing infrastructure

from jump.jl.

Comments (15)

IainNZ avatar IainNZ commented on May 22, 2024

Basic tests for Variable, AffExpr, and QuadExpr done - see output for a TODO.
Next step is operator overload testing - need lots of * and / and quadratic stuff to give it a good workout. I found my QuadExpr test, which is just testing string-ifying, caught a bug already!

from jump.jl.

mlubin avatar mlubin commented on May 22, 2024

I added some functionality to efficiently merge duplicate coefficients, if you'd like to take a look to do a similar thing for printing.

from jump.jl.

IainNZ avatar IainNZ commented on May 22, 2024

Todo: test coverage for 8ede799 -like issues

from jump.jl.

mlubin avatar mlubin commented on May 22, 2024

I added some of this in 1f3a192. I wouldn't call it complete though.

from jump.jl.

IainNZ avatar IainNZ commented on May 22, 2024

Nice - maybe I'm missing it, but does it have the test that caused the bug you fixed recently, the one where the indexing was dependent e.g. i=1:N, j=1:i

from jump.jl.

mlubin avatar mlubin commented on May 22, 2024

No, it doesn't.

from jump.jl.

mlubin avatar mlubin commented on May 22, 2024

Just added: cb2d793.

from jump.jl.

IainNZ avatar IainNZ commented on May 22, 2024

👍

from jump.jl.

IainNZ avatar IainNZ commented on May 22, 2024

Doing pretty good now. Constraints could probably do with more test coverage, I think a couple of unit tests each for MPS and LP just to ensure we don't accidently introduce bugs would be good. Then I guess whatever random models we come up for those, also run them through solve. Once thats done, I'd be willing to close this issue, with the idea that we be from now on, so a) no pushing without running tests, and b) once we start adding stuff, e.g. quadratic, duals, we update/add tests
I don't really care too much about TravisCI integration, its probably not worth it.

from jump.jl.

mlubin avatar mlubin commented on May 22, 2024

Sounds like a plan.

from jump.jl.

mlubin avatar mlubin commented on May 22, 2024

Actually, it might be helpful to have TravisCI integration especially if we're testing with different solvers. This way, issues with Clp and CoinMP packages will also show up. Not high priority, but definitely useful.

from jump.jl.

IainNZ avatar IainNZ commented on May 22, 2024

Oh yeah, good point. A test for the wider infrastructure!

from jump.jl.

IainNZ avatar IainNZ commented on May 22, 2024

Added Travis-CI stuff
HOWEVER
its failing write now because of JuliaLang/julia#3464 - hopefully that'll be fixed in the next nightly

from jump.jl.

IainNZ avatar IainNZ commented on May 22, 2024

Once you consider constraints, and we add tests, I'd be keen to close this issue. We can add tests for quadratic objective as we go.

from jump.jl.

mlubin avatar mlubin commented on May 22, 2024

The travis build passes now, and constraints are a separate issue, so let's close this.

from jump.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.