Coder Social home page Coder Social logo

Comments (5)

johnsca avatar johnsca commented on September 3, 2024

I'm not sure I fully understand this. Are you suggesting adding a "smoke test" action to the base layer that other layers could easily register tests for? Can you give some examples of the types of tests you are envisioning? Also, how does tox fit into the picture for a deployed service?

from layer-basic.

adam-stokes avatar adam-stokes commented on September 3, 2024

I'm not fully up to speed on how bundletester or amulet plays into all of this yet. I was thinking more smoke tests like I would manually deploy the service and run tox (or a test runner) against the services after they've come up.

from layer-basic.

johnsca avatar johnsca commented on September 3, 2024

Smoke tests to verify a deployment do seem useful, but I'm not sure that tox is the right approach, as it is very oriented to doing unit tests of Python code.

In the big data charms, we have a few smoke test Juju actions and I could see creating a framework for having a single smoke-test action that various layers can register test cases to instead of each defining their own separate action might well be useful to prevent conflicts and generally encourage the writing of smoke tests.

But then I start to wonder exactly what smoke tests could usefully be added by layers lower than the top-level charm layer? For example, how much could the apache-php layer usefully assert about the vanilla charm without specific knowledge of how the charm should respond and under what conditions? I think I just need more examples about what each layer could test.

from layer-basic.

adam-stokes avatar adam-stokes commented on September 3, 2024

Agreed, we can close this for now, I need to actually do more testing of my charms to get a feel for where I'm getting hungup and how to improve it.

from layer-basic.

johnsca avatar johnsca commented on September 3, 2024

Closing per last comment; re-open as necessary.

from layer-basic.

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.