Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Tests to scrapy check command #4663

Merged
merged 7 commits into from
Aug 10, 2020
Merged

Conversation

ajaymittur
Copy link
Contributor

@ajaymittur ajaymittur commented Jul 7, 2020

Continuing from PR #4298 which fixes #4222, added some basic tests for the scrapy check command as suggested by @Gallaecio and @elacuesta in the original issue and PR. Would like some feedback on the tests!

@Gallaecio
Copy link
Member

Nice. Could you resolve the conflict?

@ajaymittur
Copy link
Contributor Author

ajaymittur commented Jul 8, 2020

Done!. Do you think this should be enough for now or am I missing anything?

@ajaymittur ajaymittur closed this Jul 8, 2020
@ajaymittur ajaymittur reopened this Jul 8, 2020
@codecov
Copy link

codecov bot commented Jul 8, 2020

Codecov Report

Merging #4663 into master will increase coverage by 0.34%.
The diff coverage is 46.15%.

@@            Coverage Diff             @@
##           master    #4663      +/-   ##
==========================================
+ Coverage   84.80%   85.14%   +0.34%     
==========================================
  Files         163      163              
  Lines        9990     9990              
  Branches     1488     1488              
==========================================
+ Hits         8472     8506      +34     
+ Misses       1255     1217      -38     
- Partials      263      267       +4     
Impacted Files Coverage Δ
scrapy/commands/check.py 71.01% <46.15%> (+47.82%) ⬆️
scrapy/utils/trackref.py 82.85% <0.00%> (-2.86%) ⬇️
scrapy/contracts/default.py 88.46% <0.00%> (+3.84%) ⬆️

Copy link
Member

@Gallaecio Gallaecio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work!

pytest.ini Outdated Show resolved Hide resolved
@ajaymittur ajaymittur changed the title [WIP] Add Tests to scrapy check command Add Tests to scrapy check command Jul 10, 2020
@ajaymittur ajaymittur marked this pull request as ready for review July 10, 2020 12:56
@wRAR wRAR merged commit 0cf1340 into scrapy:master Aug 10, 2020
@wRAR
Copy link
Member

wRAR commented Aug 10, 2020

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SCRAPY_CHECK is not set while running contract
4 participants