Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the acf domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/corporate/web/wp/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the rank-math domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/corporate/web/wp/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the translatepress-multilingual domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/corporate/web/wp/wp-includes/functions.php on line 6121
AAA Framework - Mitango

AAA Framework

AAA framework is a way to make your tests and acceptance criteria easier to write but also to make it easier to check for their correctness.

AAA quality

Any acceptance criteria or test following the AAA framework will be divided into three steps.

Arrange the initial state

The first step is to create the initial state of the application before testing.

The idea behind this approach is to list everything that is necessary to make sure that the scenario described will be producing the same result if it is executed multiple times.

This is particularly useful as reproducing the result consistently is key when automating a test to have consistent results and not having the CI randomly produce different outputs on each run.

Defining logic to test

Once the initial state is defined, the next step is to define the logic to be tested, and this is done in the second step, also called act.

For that the logic that has to be executed will be detailed.

Asserting final state

Finally, the last step involves asserting that after executing all the previous steps, the final step is the expected one.

For that the last step of the AAA framework, assert, needs to describe what the final state of the application should look like.

That way it will be possible to verify whether there is a mismatch between the actual output and the desired outcome.

Any questions? We‘re here to help!

If you still have questions or need further assistance, please don‘t hesitate to reach out to me.

Join my newsletter

Never miss a single article and receive a free ebook “Bug hunting for small companies”.