test results from the API

travis's Avatar

travis

05 May, 2015 06:20 AM

I see the test summary information in the API. Is there an API to get the details of the test cases? Or if I want this should I just upload the result files as artifacts?

  1. Support Staff 1 Posted by Feodor Fitsner on 05 May, 2015 05:33 PM

    Feodor Fitsner's Avatar

    What unit testing framework is that?

  2. 2 Posted by travis on 05 May, 2015 10:13 PM

    travis's Avatar

    We use pester, but it generates NUnit test xml files

  3. Support Staff 3 Posted by Feodor Fitsner on 05 May, 2015 10:27 PM

    Feodor Fitsner's Avatar
  4. 4 Posted by travis on 05 May, 2015 10:30 PM

    travis's Avatar

    The issue is not uploading them. I want to get them back out. For example to see how often testcase123 fails. Is there something in this API I can use: http://www.appveyor.com/docs/api

    Or do I need to upload them as an artifact, and consume them that way?

  5. Support Staff 5 Posted by Feodor Fitsner on 05 May, 2015 10:34 PM

    Feodor Fitsner's Avatar

    Oh, I see. Yes you should use REST API. Maybe it's not covered in docs yet but you can open test results page and grab API request URL from browser developer tools.

    - Feodor

  6. 6 Posted by travis on 05 May, 2015 10:50 PM

    travis's Avatar

    Thanks,
    https://ci.appveyor.com/api/buildjobs/{jobId}/tests
    appears to be the call. I'll try it later

  7. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:56 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac