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

StanczakDominik / PlasmaPy / 374
98%
master: 98%

Build:
Build:
LAST BUILD BRANCH: v0.1.1
DEFAULT BRANCH: master
Ran 06 Apr 2018 07:38PM UTC
Jobs 1
Files 37
Run time 2s
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

pending completion
374

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

Jobs
ID Job ID Ran Files Coverage
1 374.1 06 Apr 2018 07:38PM UTC 0
98.42
Travis Job 374.1
Source Files on build 374
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #374
  • 9729cc52 on github
  • Prev Build on no_more_deprecationwarning (#373)
  • Next Build on no_more_deprecationwarning (#375)
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