Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement an EUnit reporter #19

Merged
merged 7 commits into from
May 23, 2024
Merged

Implement an EUnit reporter #19

merged 7 commits into from
May 23, 2024

Conversation

williamthome
Copy link
Owner

This PR implements doctest_eunit_report, an Eunit reporter/listener.
The goal is to provide a better experience with doctest in parallel with EUnit because EUnit is the basis of doc tests.

doctest_eunit_report

doctest_eunit_report provides a go-to definition for the exact location of the error and displays a portion of the code from where the error occurs, for example:

reporter-go-to-definition

eunit_progress | rebar3

rebar3 uses by default eunit_progress to print EUnit tests.

doctest_eunit_report vs eunit_progress

Below is a simple comparison between both EUnit reporters.

eunit_progress

Screenshot from 2024-05-14 22-01-44

doctest_eunit_report

Screenshot from 2024-05-14 22-02-39

@williamthome williamthome marked this pull request as draft May 15, 2024 01:05
@williamthome williamthome changed the title Implement an Eunit reporter Implement an EUnit reporter May 15, 2024
@williamthome williamthome marked this pull request as ready for review May 23, 2024 01:54
@williamthome williamthome merged commit 5a4289b into main May 23, 2024
2 checks passed
@williamthome williamthome deleted the feat/eunit-reporter branch May 23, 2024 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant