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

oemof / oemof-solph / 10473118052
82%

Build:
DEFAULT BRANCH: dev
Ran 20 Aug 2024 02:04PM UTC
Jobs 3
Files 39
Run time 1min
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

20 Aug 2024 02:03PM UTC coverage: 88.63% (-7.0%) from 95.679%
10473118052

push

github

web-flow
Merge pull request #1080 from oemof/revision/replace-constraint-tests

Replaces lp diff constraint tests by granular unit tests for functionality.

Reasoning:
- The LP files depend on Pyomo internals, thus they change when Pyomo changes things.
- They include tests for stuff from multiple parts of the code. For example, if I change the constraint formulation for the Bus, every constraint test needs to be rewritten, not only the one for the Bus.
- They are hard to understand (for many) and failed tests are hard to fix. The latter is particularly because of the undefined order of lines, so that just looking at a diff will not tell the difference: Constraints might be in a different order but still the same.

These unit tests still use Pyomo but the results are independent from the back-end. They are rather easy to understand (rather trivial test examples), and even internal constraint formulations can be changed without breaking the test, so it really tests for the specified functionally not the implementation.

1177 of 1369 branches covered (85.98%)

Branch coverage included in aggregate %.

131 of 142 new or added lines in 10 files covered. (92.25%)

183 existing lines in 7 files now uncovered.

2471 of 2747 relevant lines covered (89.95%)

2.7 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
94.44
-5.56% src/oemof/solph/_helpers.py
4
87.61
-9.84% src/oemof/solph/components/_generic_storage.py
5
95.07
0.79% src/oemof/solph/_models.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
89.29
-10.71% src/oemof/solph/helpers.py
18
89.35
-9.25% src/oemof/solph/flows/_non_convex_flow_block.py
18
80.18
-18.9% src/oemof/solph/flows/_simple_flow_block.py
21
57.89
-42.11% src/oemof/solph/constraints/integral_limit.py
37
23.75
-73.75% src/oemof/solph/constraints/investment_limit.py
43
87.61
-9.84% src/oemof/solph/components/_generic_storage.py
45
77.75
-18.0% src/oemof/solph/flows/_investment_flow_block.py
Jobs
ID Job ID Ran Files Coverage
1 10473118052.1 20 Aug 2024 02:04PM UTC 39
89.02
GitHub Action Run
2 10473118052.2 20 Aug 2024 02:04PM UTC 39
89.04
GitHub Action Run
3 10473118052.3 20 Aug 2024 02:04PM UTC 39
89.02
GitHub Action Run
Source Files on build 10473118052
  • Tree
  • List 39
  • Changed 13
  • Source Changed 0
  • Coverage Changed 17
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 5706ca2e on github
  • Prev Build on dev (#10450037309)
  • Next Build on dev (#10521793493)
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

© 2025 Coveralls, Inc