Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thyrlian/jooi

Convert the results of Infer (static analyzer by Facebook) to JUnit format results.
https://github.com/thyrlian/jooi

Last synced: about 1 month ago
JSON representation

Convert the results of Infer (static analyzer by Facebook) to JUnit format results.

Awesome Lists containing this project

README

        

# jooi (Junit Output of Infer)
Convert the results of [Infer](http://fbinfer.com/) (static analyzer by Facebook) to JUnit format results.

## Setup
* Have Ruby installed;
* Have nokogiri gem installed (if not, run `gem install nokogiri`);

## Jenkins Configure
* **Build** -> **Execute shell** -> **Command**
``` bash
#!/usr/bin/env bash
#
# Supported build systems by Infer:
# http://fbinfer.com/docs/analyzing-apps-or-projects.html
# Example analyze commands for Infer:
# infer -- gradle
# infer -- xcodebuild -target -configuration -sdk iphonesimulator
# infer -- xcodebuild -workspace -scheme -configuration -sdk iphonesimulator
#
set -o pipefail
| ruby junit_output_of_infer.rb $PWD/infer_junit_results.xml
```
* **Post-build Actions** -> **Publish JUnit test result report** -> **Test report XMLs** -> infer_junit_results.xml

## Troubleshooting
* **Q**: `.rb:: warning: Insecure world writable dir in PATH, mode 040777`
* **A**: `chmod go-w `