Giter Site home page Giter Site logo

Test only changed functions about ghostwheel HOT 4 OPEN

gnl avatar gnl commented on August 19, 2024 2
Test only changed functions

from ghostwheel.

Comments (4)

gnl avatar gnl commented on August 19, 2024

When generative testing is enabled and (g/check) is called at the bottom of the namespace, it runs the checks for every specced function in a hot-reloaded namespace. It would be great if we could go more granular and really only re-test changed functions, but we ain't there yet. I heard that there's some work being done by the folks at Cognitect that might make this possible in the future, so keeping an eye on it.

There is a performance impact depending on the number and complexity of the functions in the changed namespace as well as the number of test iterations you set, but whether that'll be a problem really depends on the project and personal workflow/preferences.

There's more info on this in the spec-testing section in the documentation, but the TL;DR is that if you feel the performance impact is too great, you can enable ::check true, adjust ::num-tests-ext, and enable ::extensive-tests in your test configuration, so that you can only run the generated generative tests as part of your regular CI/testing workflow.

With generative testing disabled (which it is by default) in your regular dev build config the performance impact is virtually zero.

from ghostwheel.

gnl avatar gnl commented on August 19, 2024

https://github.com/gnl/ghostwheel#performance-considerations-or-how-much-generative-testing-is-enough

from ghostwheel.

gnl avatar gnl commented on August 19, 2024

👋 Hi. I'm posting this same comment to all issue threads to just give a quick heads up that the project, despite rumours and some evidence to the contrary, is not dead. It was hibernating for a little while and now nearing the long-awaited next release, which will fix some long-standing issues (and introduce some breaking changes to the config).

I'll be reviewing all open issues and PRs over the next couple of weeks, so stay tuned and thanks for the patience.

See also this Slack thread

from ghostwheel.

gnl avatar gnl commented on August 19, 2024

Project update July 2023: DO NOT PANIC – this is not a eulogy

from ghostwheel.

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.