Giter VIP home page Giter VIP logo

Comments (8)

xukai92 avatar xukai92 commented on August 25, 2024

I looked into the detail of test coverage and wonder if those functions that haven't been used are just abandoned.

from turing.jl.

yebai avatar yebai commented on August 25, 2024

I can't remember what functions are not used; can we remove obviously obsolete functions, but keep potentially useful functions somewhere separately (ie. not affecting test coverage).

from turing.jl.

yebai avatar yebai commented on August 25, 2024

Keep runtest.jl structured
Please check the new runtest.jl file. When adding new tests in the future, keep it structured using the current way so that we can tell which source file we are testing for each test case.

It makes a lot sense to do it this way!

Review of old test cases
I noticed some comments in them are out-of-date. @yebai Can you also have a check and remove unnecessary ones.

Yes, I will take a look!

from turing.jl.

yebai avatar yebai commented on August 25, 2024

PS. can we create a separate branch (e.g. test-coverage) and keep all work related there?

from turing.jl.

xukai92 avatar xukai92 commented on August 25, 2024

I can't remember what functions are not used; can we remove obviously obsolete functions, but keep potentially useful functions somewhere separately (ie. not affecting test coverage).

I guess we can either

  • Create a branch called old-development and come back when some functions are needed, or
  • Create a folder called old-src or something in the root path of Turing

Which one do you think is better?

PS. can we create a separate branch (e.g. test-coverage) and keep all work related there?

I wonder whether a separate branch for test coverage is a good idea as we need keep running these updated testes for our updated code.

from turing.jl.

yebai avatar yebai commented on August 25, 2024

Create a branch called old-development and come back when some functions are needed

Let's do this.

I wonder whether a separate branch for test coverage is a good idea as we need keep running these updated testes for our updated code.

In general we should avoid commit work in progress directly to development or master. Instead, we can keep a new branch for each new task, and create a PR towards to development/master when it is done.

from turing.jl.

xukai92 avatar xukai92 commented on August 25, 2024

The coverage is 85% after removal these files.

In general we should avoid commit work in progress directly to development or master. Instead, we can keep a new branch for each new task, and create a PR towards to development/master when it is done.

Yeah! I'll stick to this as well.

BTW, do you keep the old-development locally?

from turing.jl.

xukai92 avatar xukai92 commented on August 25, 2024

@yebai I wonder if src/distributions/distributions.jl should also be removed?

The flatten function inside is not used anywhere else.

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