Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ jobs:
working-directory: ARC
run: |
echo "Running Unit Tests..."
export PYTEST_INLINE_DURATIONS=1
export PYTHONPATH="${{ github.workspace }}/AutoTST:${{ github.workspace }}/KinBot:$PYTHONPATH"
pytest arc/ --cov --cov-report=xml -ra -vv -n auto

Expand All @@ -104,6 +105,7 @@ jobs:
working-directory: ${{ github.workspace }}/ARC
run: |
echo "Running Functional Tests from $(pwd)..."
export PYTEST_INLINE_DURATIONS=1
export PYTHONPATH="${{ github.workspace }}/AutoTST:${{ github.workspace }}/KinBot:$PYTHONPATH"
pytest functional/ -ra -vv -n auto

Expand Down
13 changes: 13 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import os
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe put this in devtools? or under .actions?



def pytest_report_teststatus(report, config):
Comment thread Fixed
inline_durations = os.getenv("PYTEST_INLINE_DURATIONS") == "1"
if report.when == "call" and inline_durations:
if report.passed:
return "passed", ".", f"[{report.duration:.3f}s]"
if report.failed:
return "failed", "F", f"[{report.duration:.3f}s]"
if report.skipped:
return "skipped", "s", f"[{report.duration:.3f}s]"
return None