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
aetestintegration... you only pass a custom reporter toAEtest.main().
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.
Place the module in your project (e.g. pyats_custom_reporter.py) or install from your repo/package.
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.
aetest.main() (Standalone Execution) accepts several parameters. The one we use here is:
reporter(BaseRootReporter): pass an instance of your reporter. We passCustomReporter()to replace the defaultStandaloneReporterpresentation with emoji-augmented output.
Full API for
AEtest.main()and Standalone Execution is in the links below.
- Before (default):
before.png
- After (emoji reporter):
after.png
- AEtest API:
AEtest.main()https://pubhub.devnetcloud.com/media/pyats/docs/apidoc/aetest/index.html#pyats.aetest.main.AEtest - Default
StandaloneReporterhttps://pubhub.devnetcloud.com/media/pyats/docs/apidoc/aetest/pyats.aetest.reporter.html#pyats.aetest.reporter.default.StandaloneReporter - Standalone Execution https://pubhub.devnetcloud.com/media/pyats/docs/aetest/run.html#aetest-standalone-execution
- AEtest Reports https://pubhub.devnetcloud.com/media/pyats/docs/aetest/reports.html
- AEtest Introduction https://pubhub.devnetcloud.com/media/pyats/docs/aetest/introduction.html
- Steps & nesting https://pubhub.devnetcloud.com/media/pyats/docs/aetest/steps.html#nesting-steps
TestResultAPI https://pubhub.devnetcloud.com/media/pyats/docs/apidoc/results/index.html#pyats.results.result.TestResult- Test Result objects (source doc) https://github.com/CiscoTestAutomation/pyats/blob/8f5882275e7f874b49a303ece792339a7b79f315/docs/results/objects.rst
- ASCII banner generator used for headings https://patorjk.com/software/taag/#p=display&f=Future&t=Type+Something+&x=none&v=4&h=4&w=80&we=false

