• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

StanczakDominik / PlasmaPy / 374 / 1
98%
master: 98%

Build:
Build:
LAST BUILD BRANCH: v0.1.1
DEFAULT BRANCH: master
Ran 06 Apr 2018 07:38PM UTC
Files 37
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Apr 2018 07:33PM UTC coverage: 98.418%. Remained the same
374.1

push

travis-ci

StanczakDominik
Halve runtime of classical_transport tests with one simple trick!

So it turns out if you put in a setup_method() into a Test class that's
run by Pytest, that setup_method is executed for every single method call.
This includes all the calculations involved in classical_transport
initialization, and anything else we are doing in preparation for
these tests.

If you just setup_method into a setup_class @classmethod, it's
going to get called once per class - and that means all the variables
in it are only going to be calculated once, and they'll be shared
across every instance of the class.

It was thus the only sane choice to go all out with this.

Reference material: https://docs.pytest.org/en/latest/xunit_setup.html

2862 of 2908 relevant lines covered (98.42%)

0.98 hits per line

Source Files on job 374.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1
  • Travis Job 374.1
  • 9729cc52 on github
  • Prev Job for on no_more_deprecationwarning (#373.1)
  • Next Job for on no_more_deprecationwarning (#375.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc