charmkeeper-integration-tests

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
Plan:
  • Find the integration tests in the repository (their could be multiple "tests/integration" folders).
  • Ensure each set of integration tests is following the implementation standards.
  • Run the tests to ensure the code work as expected.
计划:
  • 在仓库中找到集成测试(可能存在多个"tests/integration"文件夹)。
  • 确保每一组集成测试都符合实现标准。
  • 运行测试以确保代码按预期工作。

Implementation standards

实现标准

  • Expected versions:
    • jubilant
      : ~> 1.7
  • Lint produced code with
    tox -e lint
    .
  • 预期版本:
    • jubilant
      : ~> 1.7
  • 使用
    tox -e lint
    对生成的代码进行代码检查。

Testing

测试

Writing integrations tests

编写集成测试

Local testing

本地测试

The integration 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
bash
multipass mount --type native $PWD charmkeeper:/workdir
Run tests with:
bash
multipass exec charmkeeper -d /workdir/ -- tox 
multipass exec charmkeeper -d /workdir/ -- tox -e integration
You may find additional information to run the tests in CONTRIBUTING.md
集成测试应在名为"charmkeeper"的虚拟机中运行。
如果该虚拟机不存在,请使用以下命令创建:
scripts/create-charmkeeper-vm.sh
如果尚未挂载工作目录,请使用以下命令将其挂载到虚拟机中:
bash
multipass mount --type native $PWD charmkeeper:/workdir
使用以下命令运行测试:
bash
multipass exec charmkeeper -d /workdir/ -- tox 
multipass exec charmkeeper -d /workdir/ -- tox -e integration
你可以在CONTRIBUTING.md中找到更多运行测试的相关信息。

Maintain

维护

Configuring renovate

配置Renovate

  • Add a regex customManager to update the revisions
  • Set ignorePath to an empty array to not exclude the
    tests
    folders
  • 添加正则表达式自定义管理器来更新修订版本
  • 将ignorePath设置为空数组,以不排除
    tests
    文件夹