Create a test run for your external tests

You can now use Hiptest to manage the test results for tests that were not written in Hiptest (for example your Unit tests).

There are some few prerequisites for that:

  • Your tests must produce a jUnit XML, NUnit XML or TAP format report.
  • You need the cURL tool installed on the machine you use to run the tests.

Step 1 – Create an external test run

Go to the test runs page and create a test run dedicated to your test suite. On the screen, select the last option to make this test run dedicated to external test results.

Hiptest Agile test management tool (27)

Step 2 – Integrate with your CI tool

Once the test run is created, you will see a “push results” button, clicking it will show the needed commands to push the results:

Sélection_484

Copy and paste the command line to your continuous integration tool post task. Here is an example with Travis-CI integration:

language: node_js
sudo: false

script:
  - grunt qunit_junit qunit

after_script:
  - curl -X POST -F file=@_build/test-reports/TEST-index.xml https://hiptest.net/import_test_reports/34733571367853856284452837154301903570172689842745864637/16512/junit

And now you’re all set. Next time the CI task is ran and the test results will be uploaded to Hiptest.

Screen Shot 2016-02-25 at 14.06.34