Skip to content

Add emojis to the original pyATS Standalone Reporter to make large runs more scannable at a glance (without changing how you write tests).

License

Notifications You must be signed in to change notification settings

bleuzkernel/pyats-custom-standalone-reporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyATS Custom Standalone Reporter

Add emojis to the original pyATS Standalone Reporter to make large runs more scannable at a glance (without changing how you write tests).

  • ✅ PASSED  ❌ FAILED  🚨 ERRORED  🟡 ABORTED  🚫 BLOCKED  ⏭️ SKIPPED
  • Keeps the classic tree (|--, `--) but aligns a RESULT column with emojis.
  • Pure aetest integration... you only pass a custom reporter to AEtest.main().

Why

pyATS’ default standalone reporter is functional, but it’s easy to lose scanability on big outputs. This reporter keeps the same structure and simply adds emojis to improve quick visual parsing.


Install

Place the module in your project (e.g. pyats_custom_reporter.py) or install from your repo/package.


Quick Start

from pyats import aetest
from pyats_custom_reporter import CustomReporter  # ← this package

def main():
    # AEtest Standalone Execution: pass your reporter
    aetest.main(__file__, reporter=CustomReporter())

if __name__ == "__main__":
    main()

That’s it. Your tests run as usual; the output shows the Detailed Results tree with emojis and a Summary.


How it fits into AEtest

aetest.main() (Standalone Execution) accepts several parameters. The one we use here is:

  • reporter (BaseRootReporter): pass an instance of your reporter. We pass CustomReporter() to replace the default StandaloneReporter presentation with emoji-augmented output.

Full API for AEtest.main() and Standalone Execution is in the links below.


Screenshots

  • Before (default): before.png

before

  • After (emoji reporter): after.png

after


References (pyATS official docs)


About

Add emojis to the original pyATS Standalone Reporter to make large runs more scannable at a glance (without changing how you write tests).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages