Skip to content

Improve integration tests: starred repos, colors, timestamps#211

Open
rdowavic wants to merge 3 commits intoamitsaha:masterfrom
rdowavic:feat/improve-integration-tests
Open

Improve integration tests: starred repos, colors, timestamps#211
rdowavic wants to merge 3 commits intoamitsaha:masterfrom
rdowavic:feat/improve-integration-tests

Conversation

@rdowavic
Copy link

Summary

  • Add starred repo test coverage for GitHub, GitLab, and Forgejo (verifies gitbackup-test-public is cloned and gitbackup-test-private is excluded when using starred repo type)
  • Add ignore-fork tests across all services (verifies -ignore-fork flag correctly skips forked repos)
  • Add ANSI color output with tty detection: green PASS, red FAIL, bold section headers
  • Add [HH:MM:SS] timestamps on every log line and elapsed time in the summary footer
  • Update INTEGRATION_TESTING.md with starred repo setup instructions

Test plan

  • Run bash test/integration-test.sh github and verify colored output with timestamps
  • Run bash test/integration-test.sh github -v and verify summary includes elapsed time
  • Pipe output to file (bash test/integration-test.sh github 2>&1 | cat) and verify no ANSI escape codes appear

Rachel Dowavic added 3 commits February 26, 2026 17:35
Test 5 verifies forked hello-world repo is present without the flag.
Test 6 verifies -ignore-fork skips the fork while keeping non-fork repos.
Also updates setup docs to mention forking a hello-world repo.
Add starred repo test coverage for GitHub, GitLab, and Forgejo services.
Add ANSI color output (green PASS / red FAIL, bold section headers) with
tty detection, HH:MM:SS timestamps on every log line, and elapsed time
in the summary footer.
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