Giter VIP home page Giter VIP logo

reporter's Introduction

reporter

ObsPy test reporter app

reporter's People

Contributors

barsch avatar krischer avatar megies avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

reporter's Issues

Possible to include test report number in response?

Is it possible (and not too much work) to include the test report number from the server in the http response? We could include a link to the report in the "Test report has been sent to tests.obspy.org. Thank you!" message then..

submodule filter

might be nice to have sometimes to filter out tests that don't have a specific module tested. i.e. click "iris" -> only shows tests that have run iris submodule.

advanced version might be: make the pass/fail sign in the first column specific to the selected submodule. i.e. click "iris" -> only shows tests that have run iris + checkmark shows if iris passed or failed (e.g. shows "pass" even if another module produced errors).

rss serving only 5 items?

I am subscribed to the RSS feed and fetch it once a day. I seem to only ever get 5 items and miss some items in between.

package versions

would be nice to see version numbers for flake8 and pyflakes..

provide link to travis build

We could add an option to set the Travis job ID in the report and have a column with a link to respective Travis build in the report overview page..
https://travis-ci.org/${TRAVIS_REPO_SLUG}/jobs/${TRAVIS_JOB_ID}

There is also an environment variable that stores the pull request number, we could also link that if TRAVIS_PULL_REQUEST is not false..
https://github.com/${TRAVIS_REPO_SLUG}/pull/${TRAVIS_PULL_REQUEST}

Reporter fails submit report to server

This is for an issue I already addressed on the developer's list, but I create this one to keep other developers in the loop.

Not sure which exactly is the condition to triggers this problem, so here are the test conditions:

  • platform: Mac OS X 10.8 system;
  • commit a22ebeb075;
  • testing against Python 3.3 installed from MacPorts;
  • no mock installed, should use unittest.mock instead;
  • uses suds-jurko @0.5

Only hypothesis:
All works fine with Python 2.6 and 2.7, so this might be related to Python 3.3 or unittest.mock.

The observed behavior is the following:

petr% obspy-runtests-3.3
..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................ss..F..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

======================================================================
FAIL: test_CatchOutput (obspy.core.tests.test_util_misc.UtilMiscTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/obspy/core/tests/test_util_misc.py", line 78, in test_CatchOutput
  self.assertEqual(out.stdout, "abc\nghi\njkl\n")
AssertionError: 'abc\n\x1b[?1034hdef\nghi\njkl\n' != 'abc\nghi\njkl\n'
abc
- def
ghi
jkl


----------------------------------------------------------------------
Ran 985 tests in 94.031s

FAILED (failures=1)
Do you want to report this to tests.obspy.org? [n]: y

Error: Could not sent a test report to tests.obspy.org.
BAD REQUEST
petr% 

subtract skipped tests

The number of "Tests" shown on the web page should not include the skipped tests, IMHO. The title of the column should probably also be changed to e.g. "Executed". Compare http://tests.obspy.org/18282/ (missed matplotlib, so some station and core tests were skipped) and http://tests.obspy.org/18283/:

screenshot from 2014-11-19 13 08 51
screenshot from 2014-11-19 13 09 04

Especially in the overview page it's misleading to see the number of all "tried" tests (which is the same for the two above runs) and not the number of actually executed tests (which is different for the two above runs):

screenshot from 2014-11-19 13 11 55

Clickable node name

Node names in list could be a clickable link that adds a node name filter for this node (like in "selected nodes" filter inlet).

Filter node using wildcards or regex

It would be great to be able to filter test results using wildcards or regex..

something like : http://tests.obspy.org/?version=1.0.2&node=docker-deb-*

support json report uploads

Opening this issue in relation to a discussion in obspy/obspy#2489.

ObsPy's tests have been refactored to use pytest so some modification to the reporter app is needed to support a more pytest friendly output.

Currently I am just using pytest-json-report as it seems to be the best supported json report writer. We could try to stick with xml but it is 2022 after all ๐Ÿ˜‰.

I have also attached an example json report. It is really quite simple to modify so we can easily make changes.
report.zip

@barsch , @trichter

Public interest on test reporter setup

Various people at EuroScipy 2016 seemed pretty interested in the whole test reporting and visualization setup. Might be worth a thought to further generalize/push/advertize this piece of our workflow..

CC @krischer

what to do with too large reports

I've seen CI test reports not getting sent because their payload is too big, likely because of the tracebacks (pytest and decorators blowing tracebacks up massively, sadly). In this case it's "just" 77 test fails.

Error: Could not sent a test report to tests.obspy.org.
Bad Request
b'Request body exceeded settings.DATA_UPLOAD_MAX_MEMORY_SIZE.'

Screenshot from 2024-05-27 10-34-09

Not sure what to do. I guess aside from allowing larger reports, we could maybe in our obspy reporting code handle a response like that and send the report again without tracebacks maybe?

CC @trichter @barsch

test failure traceback links

In test reports, the test failure icons (e.g. "#6") are clickable links in the overview at top. In the list of detailed tracebacks for each error, these icons are not clickable links (for convenient copy/paste).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.