Giter VIP home page Giter VIP logo

junit-reporter-action's Introduction

Community Project header

New Relic JUnit Reporter

GitHub Marketplace version

A GitHub Action to send JUnit test run results to New Relic.

Inputs

Key Required Default Description
accountId yes - The account to post test run results to. This could also be a subaccount.
region no US The region the account belongs to.
insertApiKey yes - Your New Relic Insert API key.
testOutputPath yes - The path to the JUnit output file.

Example usage

Post test run results to New Relic

The following example will post events of type TestRun to New Relic based on the contents of the provided JUnit output file.

Github secrets assumed to be set:

  • NEW_RELIC_ACCOUNT_ID - New Relic Account ID to post the event data to
  • NEW_RELIC_INSERT_API_KEY - Insert API key
  • NEW_RELIC_APPLICATION_ID - New Relic Application ID to create the marker on
name: Release

on:
  - release

jobs:
  newrelic:
    runs-on: ubuntu-latest
    name: Basic Usage
    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Post JUnit test results to New Relic
        uses: newrelic/[email protected]
        with:
          accountId: ${{ secrets.NEW_RELIC_ACCOUNT_ID }}
          insertApiKey: ${{ secrets.NEW_RELIC_INSERT_API_KEY }}
          testOutputPath: test-output/integration.xml

Querying the data

Data can be queried in New Relic One Chart Builder or with the New Relic CLI via the newrelic nrql query command:

newrelic nrql query --accountId 12345 --query 'SELECT * from TestRun'

junit-reporter-action's People

Contributors

ctrombley avatar melissaklein24 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.