Skip to content

Instantly share code, notes, and snippets.

@abangser
abangser / test_result_script.sh
Last active October 9, 2021 20:56
This gist is helpful during Chapter 8 of the TAU course
#!/usr/bin/bash
###################################################################################################
# This is extracting the values for each test suite description. #
# It uses awk to print the value between two quotes. #
# The columns printed is based on the following example string: #
# <testng-results ignored="0" total="23" passed="22" failed="1" skipped="0"> #
###################################################################################################
TEST_RESULTS_LOCATION="${1:-/home/runner/work/selenium-webdriver-java-course/selenium-webdriver-java-course/webdriver_java/target/surefire-reports}"
@abangser
abangser / extract-test-results.sh
Last active October 2, 2021 19:41
TAU Course - Extract Surefire Test Results
#!/usr/bin/env bash
###################################################################################################
# This is extracting the values for each test suite description. #
# It uses awk to print the value between two quotes. #
# The columns printed is based on the following example string: #
# <testng-results ignored="0" total="23" passed="22" failed="1" skipped="0"> #
###################################################################################################
TEST_RESULTS_LOCATION="${1:-/home/runner/work/selenium-webdriver-java-course/selenium-webdriver-java-course/webdriver_java/target/surefire-reports}"

Keybase proof

I hereby claim:

  • I am abangser on github.
  • I am abangser (https://keybase.io/abangser) on keybase.
  • I have a public key ASC1FKtv_u0tCgSWoCqf3l5QbYTpdtr3YkFIC2yvXqVtwQo

To claim this, I am signing this object: