pytest-ansible vs Test Kitchen
pytest-ansible
github.comTest Kitchen
kitchen.ciSide by side
| Figure | pytest-ansible | Test Kitchen |
|---|---|---|
| Price from | — | Free |
| Free plan | — | Yes |
| Free trial | — | — |
| Open source | — | Yes |
| Windows | — | Yes |
| macOS | — | Yes |
| Linux | Yes | Yes |
| API | — | Yes |
| Self-hosted | — | Yes |
| Plans published | 0 | 1 |
| Spec score · Infrastructure Testing Tools | 6.7 (#25) | 8.2 (#7) |
| Audience | The documentation describes the plugin for Ansible collection authors and developers who want to use Ansible from pytest tests. | The getting-started guide demonstrates using Test Kitchen to create and test a Chef Infra cookbook and describes a test-driven development workflow. |
| Installation | The README instructs users to install the plugin with pip install pytest-ansible. | Users can install the gem with gem install test-kitchen or install Cinc Workstation. |
| License | The project says it is free and open source under the MIT license. | The project is released under the Apache License 2.0. |
| Purpose | pytest-ansible is a pytest plugin for using Ansible in tests, running Ansible collection unit tests with pytest, and exposing Molecule scenarios through a pytest fixture. | Test Kitchen is a test harness for executing infrastructure code on one or more platforms in isolation. |
| Support | The README directs users with problems to file a GitHub issue with a detailed description. | The documentation directs users to the #test-kitchen channel on Chef Community Slack for assistance from community members. |
Plans
In their own words
pytest-ansible
pytest-ansible has no write-up on Specifiction yet; its figures are above.
Test Kitchen
Test Kitchen is a free test harness for running infrastructure code in isolation on one or more platforms. Its workflow uses create, converge, setup, verify, and destroy commands to provision environments and test infrastructure code. Documented drivers cover Amazon EC2, Apache CloudStack, DigitalOcean, Docker through Dokken, Google Cloud Platform, Hetzner Cloud, Vagrant, Azure, Hyper-V, OpenStack, and VMware products. Which drivers are available depends on the driver gems installed in the Ruby environment. Provisioning options include Chef Infra, Cinc Client, Habitat, PowerShell DSC, and shell scripts; listed verification integrations include Cinc Auditor, Chef InSpec, and Serverspec. Community plugins add Ansible, Puppet, and Salt provisioners. Installation is available through RubyGems, system packages, or Cinc Workstation, but Test Kitchen itself does not bundle Cinc or Chef tooling. Requirements include a 64-bit operating system and enabled CPU virtualization. The project uses Apache License 2.0 and points users to Chef Community Slack for community assistance. The documentation notes known issues and no current maintainer for kitchen-docker, recommending kitchen-dokken instead.