charmkeeper-tests

📁 seb4stien/charmkeeper 📅 6 days ago
3
总安装量
3
周安装量
#57390
全站排名
安装命令
npx skills add https://github.com/seb4stien/charmkeeper --skill charmkeeper-tests

Agent 安装分布

opencode 3
gemini-cli 3
claude-code 3
github-copilot 3
codex 3
kimi-cli 3

Skill 文档

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

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