Skip to main content

Your submission was sent successfully! Close

Thank you for signing up for our newsletter!
In these regular emails you will find the latest updates from Canonical and upcoming events where you can meet our team.Close

Thank you for contacting us. A member of our team will be in touch shortly. Close

An error occurred while submitting your form. Please try again or file a bug report. Close

We've found these results for your search: "test"

  • test  Charmcraft

    Run spread tests for the project. charmcraft test [options]

  • Unit test suite  Juju

    See also: Create a unit test suite A unit test suite is a collection of unit tests. Each suite has a distinct set-up and tear-down logic. Unit test suites are often composed of util suites.

  • Integration test suite  Juju

    Source: https://github.com/juju/juju/tree/main/tests/suites An integration test suite is a collection of integration tests. Each suite has a distinct set-up and tear-down logic. Integration test suite...

  • Write a unit test  Juju

    Finally, to run the test, do: go test github.com/juju/juju/x/y/magic/ This will run all the tests registered in the magic package, including the one we just wrote. You can also chose to run specific t...

  • Test include  Juju

    Source: https://github.com/juju/juju/tree/main/tests/includes In Juju, test includes are special bash util functions designed to help in creating effective integration test suites for juju. This docum...

  • Write an integration test  Juju

    See also: Integration testing This document demonstrates how to write an integration test for juju. First, navigate to the suites folder. In this directory, create a subdirectory named after the integ...

  • Create a unit test suite  Juju

    See also: Unit test suite To create a new unit test suite, you can do something like: type ToolsSuite struct { testing.BaseSuite dataDir string } var _ = gc.Suite(&ToolsSuite{}) If there is no extra s...

  • How to manage the charm version  Ops

    Since the version isn’t set by the charm code itself, you’ll want to test that the version is correctly set with an integration test, and don’t need to write a unit test. See first: How to write integ...

  • How to contribute  Terraform Juju

    All code contributions must include tests. To run the tests locally before submitting your changes: TODO: test command 1 TODO: test command 2 Check linked code elements: Ensure coupled code elements, ...

  • How to write unit tests for a charm  Ops

    To write a test function, use a Context object to encapsulate the charm type (MyCharm) and any necessary metadata. The test should then define the initial State and call Context.run with an event and ...