Skip to content

Commit 1d34cd9

Browse files
katia-sentrypre-commit-ci[bot]larsoner
authored
Add Test Analytics (#13225)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
1 parent 2bb3ac2 commit 1d34cd9

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

.circleci/config.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ jobs:
244244
make test-doc;
245245
mkdir -p doc/_build/test-results/test-doc;
246246
cp junit-results.xml doc/_build/test-results/test-doc/junit.xml;
247+
cp coverage.xml doc/_build/test-results/test-doc/coverage.xml;
247248
fi;
248249
# Build docs
249250
- run:
@@ -288,6 +289,15 @@ jobs:
288289
- store_artifacts:
289290
path: doc/_build/test-results
290291
destination: test-results
292+
# Upload test results to Codecov
293+
- run:
294+
name: Upload test results to Codecov
295+
environment:
296+
CODECOV_TOKEN: fb4c4a94-72d7-4743-bb08-af25b623a29a
297+
command: |
298+
if [[ -f doc/_build/test-results/test-doc/coverage.xml ]]; then
299+
bash <(curl -s https://codecov.io/bash) -f doc/_build/test-results/test-doc/coverage.xml
300+
fi
291301
# Save the SG RST
292302
- store_artifacts:
293303
path: doc/auto_examples.zip

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ test-no-testing-data: in
4141
$(PYTESTS) mne
4242

4343
test-doc: sample_data testing_data
44-
$(PYTESTS) --doctest-modules --doctest-ignore-import-errors --doctest-glob='*.rst' ./doc/ --ignore=./doc/auto_examples --ignore=./doc/auto_tutorials --ignore=./doc/_build --ignore=./doc/conf.py --ignore=doc/sphinxext --fulltrace
44+
$(PYTESTS) --tb=short --cov=mne --cov-report=xml --cov-branch --doctest-modules --doctest-ignore-import-errors --doctest-glob='*.rst' ./doc/ --ignore=./doc/auto_examples --ignore=./doc/auto_tutorials --ignore=./doc/_build --ignore=./doc/conf.py --ignore=doc/sphinxext --fulltrace
4545

4646
pre-commit:
4747
@pre-commit run -a --show-diff-on-failure

doc/changes/devel/13225.other.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add test analytics functionality to track and analyze test performance, by :newcontrib:`Katia Al-Amir`.

doc/changes/names.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@
156156
.. _Jussi Nurminen: https://github.com/jjnurminen
157157
.. _Kaisu Lankinen: http://bishoplab.berkeley.edu/Kaisu.html
158158
.. _Katarina Slama: https://github.com/katarinaslama
159+
.. _Katia Al-Amir: https://github.com/katia-sentry
159160
.. _Keith Doelling: https://github.com/kdoelling1919
160161
.. _Kostiantyn Maksymenko: https://github.com/makkostya
161162
.. _Kristijan Armeni: https://github.com/kristijanarmeni

0 commit comments

Comments
 (0)