BrowserStackCE / junit-result-aggregator

Aggregate the results of multiple junit xml files in chronological order & uploads the test cases to Test Observability

Repository from Github https://github.comBrowserStackCE/junit-result-aggregatorRepository from Github https://github.comBrowserStackCE/junit-result-aggregator

jest json to junit xml conversion

Convert results of multiple junit xml files in chronological order & uploads the test cases to Test Observability

To use the windows executable follow the below instructions

  • Download the junitupload-win directory to your local machine
  • Set Environment variables BROWSERSTACK_USERNAME and BROWSERSTACK_ACCESS_KEY
  • Change directory using the below command
      cd junitupload-win
  • Get the path of the jest json report
  • Run the junit upload command with required parameters
      junitupload.exe ^
      -p "Your Project Name" -b "Your Build Name" -i buildnum -t "your build tag" ^
      -f "jest, 27.9.0" -c "Your jenkins host url" ^
      -d "<Path to the Input jest json file without the angled brackets>" ^
      -o "<Path to the Output Directory without the angled brackets>"
  • Verify the results in the Test Observability dashboard

To use the Mac binary follow the below instructions

  • Download the junitupload-mac directory to your local machine
  • Set Environment variables BROWSERSTACK_USERNAME and BROWSERSTACK_ACCESS_KEY
    • Change directory using the below command
        cd junitupload-mac
  • Get the path of the jest json report
  • Run the junit upload command with required parameters
      ./junitupload.sh \
      -p "Your Project Name" -b "Your Build Name" -i buildnum -t "your build tag" \
      -f "jest, 27.9.0" -c "http://localhost:8080" \
      -d "<Path to the Input jest json file without the angled brackets>" \
      -o "<Path to the Output Directory without the angled brackets>"
  • Verify the results in the Test Observability dashboard

To use the Linux binary follow the below instructions

  • Download the junitupload-lin directory to your local machine
  • Set Environment variables BROWSERSTACK_USERNAME and BROWSERSTACK_ACCESS_KEY
    • Change directory using the below command
        cd junitupload-lin
  • Get the path of the jest json report
  • Run the junit upload command with required parameters
      ./junitupload.sh \
      -p "Your Project Name" -b "Your Build Name" -i buildnum -t "your build tag" \
      -f "jest, 27.9.0" -c "http://localhost:8080" \
      -d "<Path to the Input jest json file without the angled brackets>" \
      -o "<Path to the Output Directory without the angled brackets>"
  • Verify the results in the Test Observability dashboard

About

Aggregate the results of multiple junit xml files in chronological order & uploads the test cases to Test Observability


Languages

Language:Roff 52.6%Language:C 21.2%Language:C++ 13.1%Language:Java 12.6%Language:Shell 0.3%Language:Objective-C 0.2%