diff --git a/.github/workflows/test_workflow.yml b/.github/workflows/test_workflow.yml index 54f9b50..4e99d17 100644 --- a/.github/workflows/test_workflow.yml +++ b/.github/workflows/test_workflow.yml @@ -31,12 +31,12 @@ jobs: # test on Ubuntu - NAME: Ubuntu Baseline OS: ubuntu-latest - PY: '3.11' + PY: '3.12' # test on MacOS - NAME: MacOS Baseline OS: macos-latest - PY: '3.11' + PY: '3.12' runs-on: ${{ matrix.OS }} @@ -77,7 +77,7 @@ jobs: run: | cd $HOME - testflo testflo.tests || RC=$? + testflo testflo.tests -vs --show_skipped --durations=5 --durations-min=0 --deprecations_report dep.txt || RC=$? if [[ $RC -ne 1 ]]; then echo "Expected some tests to fail." @@ -104,6 +104,8 @@ jobs: exit 11 fi + grep "Deprecations Report" dep.txt + - name: Run tests in serial run: | cd $HOME diff --git a/testflo/test.py b/testflo/test.py index 425ed8a..b1e0641 100644 --- a/testflo/test.py +++ b/testflo/test.py @@ -341,11 +341,13 @@ def run(self, queue=None): else: stream_val = '' if ut_subtests: + end_time = time.perf_counter() for sub, err in ut_subtests: subtest = SubTest(sub._subDescription(), self.spec, self.options) subtest.status = status subtest.err_msg = stream_val + err - subtest.end_time = time.perf_counter() + subtest.start_time = self.start_time + subtest.end_time = end_time subtest.memory_usage = get_memory_usage() subs.append(subtest) else: