INRIA / INRIA/spoon

feature: study how to use Spoon to implement the Arrange-Act-Assert pattern

Open
#3,657 6 comments 1 reaction 0 assignees View on GitHub
feature mastersthesis
Dominant language
Java
Stars
2k
Forks
392
Avg merge
11h 24m
Merged PRs (30d)
36

Description

The Arrange-Act-Assert pattern is meant to maximize readability of test code: https://java-design-patterns.com/patterns/arrange-act-assert/

This is more or less the same as the Given/When/Then pattern, see https://martinfowler.com/bliki/GivenWhenThen.html

We could use Spoon to rewrite Junit tests according to this pattern.

Related work:

* @jamescooke's https://github.com/jamescooke/flake8-aaa is Flake8 plugin that checks Python tests follow the Arrange-Act-Assert pattern

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.