0.3.0 • Published 9 years ago

xunithub v0.3.0

Weekly downloads
5
License
MIT
Repository
github
Last release
9 years ago

xunithub

Introduction

xunithub tries to save time you spend in analyzing test failures with your PR build. it simply goes through xunit report folder, parses all report files to find test failures, and then post those failures to github as PR comment.Its completely test framework agnostic, and only relies on xunit reporting standard. if your framework outputs xunit reports, and you use github as your code repository,you can use xunithub.

Usage

xunithub -g https://api.github.com/repos/(org/repo) -k (Github Access Token) -p (Github PR ID) -t (Xunit Test folder)

xunithub -g https://api.github.com/repos/proverma/arrow -k XXXXXXXXXXXXXXXXXXXXXXX -p 4 -t ~/Work/test-xunit

Usage without API key

If you do not want to use an API key, you can use a username and password, or username and MFA token, by including it in the repo url like so:

xunithub -g https://username:password@api.github.com/repos/(org/repo) -p (Github PR ID) -t (Xunit Test folder)

xunithub -g https://proverma:XXXXXXXX@api.github.com/repos/proverma/arrow -p 4 -t ~/Work/test-xunit

Example Report

Here is an example of what a report looks like in Github:

Failures

YourTestSuite.xml (1)

  • Test Class Name : YourTestSuite - YourTest
  • Test Case Name : should not fail
  • Failure Message :

    undefined is not an object: myObject.myProperty


Help

How to create Github Access token

https://help.github.com/articles/creating-an-access-token-for-command-line-use/

0.3.0

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago