Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python.announce > #2605

pytest-logger 0.2.0 released

Path csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From Krzysztof Laskowski <krzysztof.laskowski.1986@gmail.com>
Newsgroups comp.lang.python.announce
Subject pytest-logger 0.2.0 released
Date Thu, 17 Aug 2017 19:01:17 +0200
Lines 32
Approved python-announce-list@python.org
Message-ID <mailman.126.1503144231.2689.python-announce-list@python.org> (permalink)
References <2c2da308-985d-c1b0-441f-33a81456fb0a@gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de BQVpC1REIvbhR9dy9tlinQWNbuns7a0nDWZ3siuuhBJA==
Return-Path <krzysztof.laskowski.1986@gmail.com>
X-Original-To python-announce-list@python.org
Delivered-To python-announce-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'url:pypi': 0.03; 'url:github': 0.05; 'subject:released': 0.07; "'''": 0.09; 'filesystem': 0.09; 'hooks': 0.09; 'logger': 0.09; 'received:192.168.0.11': 0.09; 'def': 0.13; 'api,': 0.16; 'filesystem,': 0.16; 'happily': 0.16; 'neutral': 0.16; 'pytest': 0.16; 'tmpdir': 0.16; 'way:': 0.16; 'all,': 0.21; 'filtering': 0.22; 'url:io': 0.23; 'output': 0.24; 'putting': 0.24; 'header :User-Agent:1': 0.27; "i'd": 0.27; 'example': 0.29; 'issues.': 0.29; 'message-id:@gmail.com': 0.30; 'url:python': 0.32; 'received:google.com': 0.32; 'combination': 0.33; 'allows': 0.34; 'skip:l 30': 0.35; 'url:org': 0.36; 'received:209.85': 0.37; 'structure': 0.37; 'subject:-': 0.38; 'received:io': 0.38; 'received:psf.io': 0.38; 'received:ams1.psf.io': 0.38; 'received:mail1.ams1.psf.io': 0.38; 'feedback': 0.38; 'skip:p 30': 0.38; 'received:192': 0.39; 'received:209': 0.39; 'level': 0.39; 'proto:https': 0.39; 'received:192.168': 0.39; 'to:addr:python.org': 0.40; 'test': 0.40; 'real': 0.67; 'receive': 0.70; 'levels': 0.70; 'to:addr:python-announce-list': 0.72
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=V+zTOGSitKNmpuvHaaUHOHQyvpoU8Jgsg8lRSeCXMFM=; b=XO+5bFurFz3g4I3FWC6pOITiyB77c/H3uCkcWJaLnKDn5Ujqo38FVYJvhqDPdrgedm wu60VrJJGC3YDc36YjxHAslI3fkdcXlY9EPBPOSCwiLhhsUjHZHDI1v6MrBbIXNuZH4W qGYO+IrFJGr0DDBR5gcER9OXRo49br5zYPpGRgfbON3jqqamdauLmuMiJxHYhmtzF5kY NzuFPovDBnYiut2GerXjT0zjaM7Oz7PjQVuRY2rF8jqLSoKje9o/vJ3XgUEdAJ8kK1it KmtHzQqTSpFrCe/pPqsZKqlXjVqZ5K7uj0DK2Db8W/5EbGOfM1UtM+c+IKjO8NckiSKK VZcQ==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=V+zTOGSitKNmpuvHaaUHOHQyvpoU8Jgsg8lRSeCXMFM=; b=qbpGevmeueLFrYL1+hW+duSLR7hkhTVC+TBZRNw/GxvJ/ZR59Y5lgpXjblt9NUnqGM I6J7goYcEFLqXQuxhwD3KP+eu24H4BP8aS4MeDJEYn4K0s6QcG28ylJfp4CV2cVhvuzy HHew7dJiipFND4l6iH1sK59ZiWBW6c0K65IhFnWsVF+Ro3XK+YBTGzC7+JALzSKpHvaL txzTFCWXFUBLXJqfotFUMc15p6KoCSfG9rKIzHL7Mr1eJazV8i+a0lEKjiIaXhsyn4js sF4FUqRiBnwZkQKs+U0sR0b4UmA4mC6T8+dMeg7W824rJh2zqSVXCI5JQny0sgcUhVFJ DYJQ==
X-Gm-Message-State AHYfb5i66HmGFQAoGT+G92/mIEhLViGyyoYgpoDZpt+yG8lboCGPbsqY atEG2WcI4hXCW5XK
X-Received by 10.46.8.1 with SMTP id 1mr2688364lji.67.1502989279143; Thu, 17 Aug 2017 10:01:19 -0700 (PDT)
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1
Content-Language en-US
X-Mailman-Approved-At Sat, 19 Aug 2017 08:03:50 -0400
X-BeenThere python-announce-list@python.org
X-Mailman-Version 2.1.24
Precedence list
List-Id Announcement-only list for the Python programming language <python-announce-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-announce-list/>
List-Post <mailto:python-announce-list@python.org>
List-Help <mailto:python-announce-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <2c2da308-985d-c1b0-441f-33a81456fb0a@gmail.com>
Xref csiph.com comp.lang.python.announce:2605

Show key headers only | View raw


Hi All,

pytest-logger is a pytest plugin putting stdlib logs to:
     - tmpdir directory structure mimicking test suite structure,
     - pytest terminal output in real time, as test progresses.

pypi: https://pypi.python.org/pypi/pytest-logger/0.2.0
repo: https://github.com/aurzenligl/pytest-logger
docs: http://pytest-logger.readthedocs.io

* logs to filesystem in fine-grained way: per-logger and per-testcase
* logs to terminal in real-time: allows cmdline filtering by logger
   and level
* uses pytest hooks as user API, which makes plugin neutral unless
   deliberately hook-configured

     # conftest.py example
     def pytest_logger_config(logger_config):
         '''logs:
         - foo.warn, bar.warn and baz.warn to filesystem,
         - foo.warn, bar.error to terminal
         - allows to change default --log value to any combination
           of loggers and levels
         '''
         logger_config.add_loggers(['foo', 'bar', 'baz'],
                                   stdout_level='warn')
         logger_config.set_log_option_default('foo,bar.error')

I'd happily receive feedback and suggestions via mail or github issues.

Best Regards,
Krzysztof Laskowski

Back to comp.lang.python.announce | Previous | Next | Find similar | Unroll thread


Thread

pytest-logger 0.2.0 released Krzysztof Laskowski <krzysztof.laskowski.1986@gmail.com> - 2017-08-17 19:01 +0200

csiph-web