diff --git a/README.md b/README.md index aa8dea8..4c6a8e2 100644 --- a/README.md +++ b/README.md @@ -93,22 +93,6 @@ Monkeyble allow to check the states of a task should_failed: false ``` -### Cli - -Monkeyble comes with a CLI that allow to execute all tests from a single command and return a summary of test executions. -```bash -monkeyble test - -Playbook | Scenario | Test passed ------------+-----------------+------------- - play1.yml | validate_test_1 | ✅ - play1.yml | validate_test_2 | ✅ - play2.yml | validate_this | ✅ - play2.yml | validate_that | ✅ - - 🐵 Monkeyble test result - Tests passed: 4 of 4 tests -``` - ### Monkey patching Monkey patching is a technique that allows you to intercept what a function would normally do, substituting its full execution with a return value of your own specification. @@ -129,6 +113,22 @@ Monkeyble allows to mock a task and return a specific value: my_key: "mock value" ``` +### Cli + +Monkeyble comes with a CLI that allow to execute all tests from a single command and return a summary of test executions. +```bash +monkeyble test + +Playbook | Scenario | Test passed +-----------+-----------------+------------- + play1.yml | validate_test_1 | ✅ + play1.yml | validate_test_2 | ✅ + play2.yml | validate_this | ✅ + play2.yml | validate_that | ✅ + + 🐵 Monkeyble test result - Tests passed: 4 of 4 tests +``` + ## Do I need Monkeyble? The common testing strategy when using Ansible is to deploy to a staging environment that simulates the production.