The Simplest Way to Make Gogs and Testcomplete Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams pair Gogs and TestComplete to store test projects in Git and run UI checks on code changes. This workflow pulls saved test scripts from your repo and runs them on build machines. Gogs is a fast, self-hosted Git service that uses minimal system memory. TestComplete is a tool for building and running automated UI tests across desktop, web, and mobile apps. When you link them, code commits can trigger test runs right away. This helps teams catch bugs early before bad code reaches users. Ho

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

Teams pair Gogs and TestComplete to store test projects in Git and run UI checks on code changes. This workflow pulls saved test scripts from your repo and runs them on build machines.

Gogs is a fast, self-hosted Git service that uses minimal system memory. TestComplete is a tool for building and running automated UI tests across desktop, web, and mobile apps. When you link them, code commits can trigger test runs right away. This helps teams catch bugs early before bad code reaches users.

How Gogs and TestComplete share data and roles

To make Gogs and TestComplete work together, you need a clean way to log in and move files. TestComplete stores its test suites, project files, and scripts as plain files on disk. Developers push these files into a Gogs repo using standard Git commands.

Data flows between the two tools in two main stages. First, a tester saves new test steps in TestComplete and pushes those changes to Gogs. Second, a build server watches Gogs for new commits or pull requests. When a change lands, the build agent pulls the latest repo files onto a test runner machine. Then, the build agent tells TestComplete to open the project file and start the test run.

Logins between these systems rely on SSH keys or personal tokens. The test runner needs read rights to pull the test suite from Gogs. Human testers need both read and write rights so they can save updates to the test repo. Keeping these two login types separate is the first step toward a safe setup.

Common failure modes and how to fix them

Many teams take shortcuts when they first link their Git server and test runners. A common mistake is using one personal account for every test runner machine. When a team member leaves and you delete their account, every automated test run stops working. Shared accounts also make it impossible to see who changed a file in the audit log.

Broad tokens cause another major risk for engineering teams. If a build runner holds a token with full write rights, a bad script can wipe out repos. Test runners only need to read test files during a normal build run. They rarely need to push code back to the main branch.

End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Unlogged test runs and hidden test data create blind spots during security reviews. UI tests often use test databases that hold real emails, phone numbers, or card numbers. If a test fails and dumps screen logs to a public share, sensitive data can leak. Teams should use fake test data or mask emails and card numbers in test results.

To fix these issues, create a dedicated bot account in Gogs just for your test runners. Give this bot account read-only rights on the specific test repo it needs. Never grant admin rights or broad group roles to a test runner account. Next, lock down your network paths with clear firewall rules. Allow the test runner to talk to Gogs only over your chosen Git port. Rotate your SSH keys and tokens on a regular schedule so old keys cannot cause harm.

Keeping test runners fast and stable

UI tests need a real screen session to click buttons and read windows. If a user logs out of the test host, the desktop locks and tests fail. Make sure your test runner keeps an active screen session open during the whole run. Also, clear out old workspace files before pulling fresh code from Gogs. Leftover temp files from past runs can cause false test failures and waste hours of team time.

Check database and API queries on the wire

Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.

Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.

Frequently asked questions

Can TestComplete push test results directly back to a Gogs repo?

It can, but storing binary test logs in Git makes your repo huge and slow. Instead, save test reports to a file store and post a status message to Gogs.

Should we use SSH keys or HTTPS tokens between Gogs and test machines?

Both options work well for automated test pulls when you scope them down. Deploy keys using SSH are great because you can tie them to one single repo with read-only rights.

How do we keep secrets out of our TestComplete project files in Gogs?

Never type database passwords or API keys straight into your saved test scripts. Store those secrets in your build tool and pass them into the test run as local variables.

The query runs. The emails stay hidden.