zerocode icon indicating copy to clipboard operation
zerocode copied to clipboard

ISSUE-687 # Persist report and run-log files to an external space after all tests executions

Open rkshpanigrahi opened this issue 6 months ago • 3 comments

Persist report to external repo after all tests executions

Fixes Issue: https://github.com/authorjapps/zerocode/issues/687

PR Branch #ADD LINK TO THE PR BRANCH

Motivation and Context

Checklist:

  • [x] New Unit tests were added

    • [x] Covered in existing Unit tests
  • [x] Integration tests were added

    • [x] Covered in existing Integration tests
  • [x] Test names are meaningful

  • [x] Feature manually tested and outcome is successful

  • [x] PR doesn't break any of the earlier features for end users

    • [ ] WARNING! This might break one or more earlier earlier features, hence left a comment tagging all reviewrs
  • [x] PR doesn't break the HTML report features directly

    • [x] Yes! I've manually run it locally and seen the HTML reports are generated perfectly fine
    • [x] Yes! I've opened the generated HTML reports from the /target folder and they look fine
  • [x] PR doesn't break any HTML report features indirectly

    • [x] I have not added or amended any dependencies in this PR
    • [x] I have double checked, the new dependency added or removed has not affected the report generation indirectly
    • [] Yes! I've seen the Sample report screenshots here, and HTML report of the current PR looks simillar.
  • [ ] Branch build passed in CI

  • [x] No 'package.*' in the imports

  • [ ] Relevant DOcumentation page added or updated with clear instructions and examples for the end user

    • [ ] Not applicable. This was only a code refactor change, no functional or behaviourial changes were introduced
  • [x] Http test added to http-testing-examples module(if applicable) ?

    • [x] Not applicable. The changes did not affect HTTP automation flow
  • [ ] Kafka test added to kafka-testing-examples module(if applicable) ?

    • [ ] Not applicable. The changes did not affect Kafka automation flow

rkshpanigrahi avatar Jul 22 '25 16:07 rkshpanigrahi

@rkshpanigrahi , Given a CI run now. Lets see how it goes. Have you tested this feature? Can you attach some evidence to the ticket or here please?

You can check the CI statis here (once they are complete): https://github.com/authorjapps/zerocode/pull/718/checks

nirmalchandra avatar Jul 23 '25 15:07 nirmalchandra

@nirmalchandra

I have tested this feature by configuring the repository, username, and token in the http-testing modules. Once all tests were executed, the following reports were successfully pushed to the external Git repository:

Repository Configuration: reports.repo=https://github.com/panigr/zerocode-test-reports
reports.repo.username=panigr
reports.repo.token=

target/zerocode-junit-interactive-fuzzy-search.html target/zerocode-junit-granular-report.csv target/logs/.log

I am taking a look into build failure

rkshpanigrahi avatar Jul 23 '25 17:07 rkshpanigrahi

@rkshpanigrahi , Given a CI run again after your fix. Lets see how it goes. 🤞

nirmalchandra avatar Jul 24 '25 22:07 nirmalchandra