quipucords / camayoc

Test automation framework that facilitates functional testing of quipucords.
https://camayoc.readthedocs.io/
GNU General Public License v3.0
5 stars 4 forks source link

Set Ibutsu component automatically based on test location #385

Closed mirekdlugosz closed 1 year ago

mirekdlugosz commented 1 year ago

We would like Ibutsu dashboard to show rows for CLI, API and UI. To do that, we need to set component field in result object.

However, that field can't be set using command line. So we have to use custom pytest hook.

If pytest-ibutsu is not installed, none of this will be executed.

Side note: Jenkins calls pytest with

--ibutsu-data discovery=${DISCOVERY_RELEASE} camayoc=1.0.0 dsc=${DISCOVERY_RELEASE} jenkins_job_number="${BUILD_NUMBER}"

camayoc field could be set up using hook from this PR, but we would need to solve Single-sourcing the package version first.

codecov[bot] commented 1 year ago

Codecov Report

Merging #385 (2ae86f3) into master (780b4dd) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #385   +/-   ##
=======================================
  Coverage   79.91%   79.91%           
=======================================
  Files           5        5           
  Lines         229      229           
=======================================
  Hits          183      183           
  Misses         46       46           

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more