Skip to content

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

Notifications You must be signed in to change notification settings

BrowserStackCE/junit-result-aggregator

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published