User Tools

GitHub CI Example

Requires a GitHub account and an Online CI account (Travis CI or Circle CI).

Creating a new Connected Project consists of selecting an available GitHub repository in the new project list. Once you've added Testspace to your CI, test results and other metrics are automatically collected for each and every branch on all jobs.

The below example demonstrates how Testspace supports the GitHub branch workflow. The example published results can be viewed Here.

Setup Steps

The following steps will guide your setup requirements:

  1. Fork this repo into your GitHub organization
  2. Add this new Repo to Travis CI (requires resync) or Circle CI (don't build yet)
  3. Ensure that your Testspace account is Connected with GitHub
  4. Create a New Project (see below)
  5. Create a new branch and Update yaml File for CI system (see below)
  6. Push Branch to remote GitHub Repo (see below)

New Project

Upon completing the sign-up and the GitHub services connection process, your Projects page will display the following.

Select the New Project button to bring up the dialog below.

 New Connected Project

Select the getting.started repository from the list and click OK. A new Testspace Project will be created, connected to the repository. New Spaces, one for each active branch, will be created automatically the first time test results and other metrics are pushed from a CI system.

Update Yaml File

The Online yaml file requires changing YOUR-subdomain to the Testspace organization subdomain selected.

Update YOUR-subdomain in the yml file.

Travis CI

Only the your-subdomain requires updating in the .travis.yml for pushing results to Testspace.

  - mkdir -p $HOME/bin
  - curl -fsSL | tar -zxvf- -C $HOME/bin
  - testspace config url
  - testspace analysis.xml [tests]results*.xml coverage.xml 

Circle CI

Only the your-subdomain requires updating in circl.yml for pushing results to Testspace.

    - curl -fsSL | tar -zxvf- -C $HOME/bin
    - testspace config url
    - testspace analysis.xml [tests]results*.xml coverage.xml 

Push A Branch

Do stuff – new branches, pull request, etc. Testspace automatically tracks the branch workflow!

After the job has pushed successfully, in the Project's Spaces tab, select the new Space which will take you to the Schema tab where you can review the result's hierarchy and the data that was pushed. Select the Metrics tab to review the newly created charts for test suites, test cases, acn code coverage.

For more information on How to Push Data - organize results, create folders, use incrementally uploads, include git source code changes, and other push options

What's Next?

For more details refer to our product blog at

Page Tools