Yelp / swagger-spec-compatibility

Python library to check Swagger Spec backward compatibility
https://swagger-spec-compatibility.readthedocs.org
Apache License 2.0
20 stars 8 forks source link

Add test case that ensures that examples are triggering the desired rule #27

Closed macisamuele closed 4 years ago

macisamuele commented 4 years ago

While working on #22 I felt like having examples is great. But not being sure about the fact examples are still triggering the desired rule is not great.

In order to address this I've added a new test test_ensure_that_examples_are_covering_the_correct_rule that essentially runs the tool over the examples files and ensures that the correct reporting is thrown.

codecov[bot] commented 4 years ago

Codecov Report

Merging #27 into master will not change coverage. The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #27   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          60     60           
  Lines        1891   1898    +7     
  Branches      121    121           
=====================================
+ Hits         1891   1898    +7
Impacted Files Coverage Δ
tests/docs_test.py 100% <100%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 580b6c2...758243b. Read the comment docs.