charmkeeper-tests

- Find the unit tests in the repository (their could be multiple "tests/unit" folders).

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "charmkeeper-tests" with this command: npx skills add seb4stien/charmkeeper/seb4stien-charmkeeper-charmkeeper-tests

Plan:

  • Find the unit tests in the repository (their could be multiple "tests/unit" folders).

  • Ensure each set of unit tests is following the implementation standards.

  • Run the tests to ensure the code work as expected.

Implementation standards

Unit test should be implemented with ops.testing , not harness .

Lint produced code with tox -e lint .

Testing

Writing unit tests

Unit test must be implemented with ops.testing :

  • See How to migrate unit tests from Harness if the charm is currently using harness.

For each charm in the repository, there should be a tests/ folder like: https://github.com/canonical/platform-engineering-charm-template/tree/main/tests

Local testing

The unit tests should be run in a virtual machine named "charmkeeper".

If the machine doesn't exist, create it with: scripts/create-charmkeeper-vm.sh .

If not already done, mount the working directory folder in the machine with

multipass mount --type native $PWD charmkeeper:/workdir

Look at CONTRIBUTING.md to see if there are specific instructions to test the charm.

Unless there is something specific mentioned, you should be able to run the tests with:

multipass exec charmkeeper -d /workdir/ -- tox

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

charmkeeper-terraform

No summary provided by upstream source.

Repository SourceNeeds Review
General

charmkeeper-integration-tests

No summary provided by upstream source.

Repository SourceNeeds Review
General

charmkeeperration-tests

No summary provided by upstream source.

Repository SourceNeeds Review
General

image-gen

Generate AI images from text prompts. Triggers on: "生成图片", "画一张", "AI图", "generate image", "配图", "create picture", "draw", "visualize", "generate an image".

Archived SourceRecently Updated