Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@klauern
Copy link
Contributor

@klauern klauern commented Jun 9, 2020

Description

Switching from using nose to Pytest, with the pytest-cov fixture to aid in code coverage as well.

Fixes #776

Also switches from Travis-CI to GitHub Actions.

Type of change

Select the relevant option(s):

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works (optional)
  • New and existing unit tests pass locally with my changes

@x4v13r64
Copy link
Collaborator

x4v13r64 commented Jun 9, 2020

Don't worry too much about the travis issues since we'll switch to Actions. You could actually make this PR against the #761 branch?

@klauern klauern changed the title WIP: switch from nose to pytest switch from nose to pytest Jun 9, 2020
@klauern klauern marked this pull request as ready for review June 9, 2020 17:40
@klauern klauern mentioned this pull request Jun 9, 2020
10 tasks
@klauern klauern changed the title switch from nose to pytest switch from nose to pytest / switch to GitHub Actions Jun 9, 2020
@codecov-commenter
Copy link

codecov-commenter commented Jun 9, 2020

Codecov Report

Merging #783 into develop will decrease coverage by 56.12%.
The diff coverage is 9.09%.

Impacted file tree graph

@@             Coverage Diff              @@
##           develop     #783       +/-   ##
============================================
- Coverage    66.53%   10.40%   -56.13%     
============================================
  Files           22      309      +287     
  Lines         1536     9859     +8323     
============================================
+ Hits          1022     1026        +4     
- Misses         514     8833     +8319     
Impacted Files Coverage Δ
ScoutSuite/providers/aws/facade/s3.py 0.00% <0.00%> (ø)
ScoutSuite/providers/aws/resources/s3/base.py 0.00% <0.00%> (ø)
ScoutSuite/utils.py 82.35% <75.00%> (-3.37%) ⬇️
ScoutSuite/core/console.py 65.07% <0.00%> (-0.80%) ⬇️
ScoutSuite/providers/aliyun/facade/ram.py 0.00% <0.00%> (ø)
...uite/providers/azure/resources/network/watchers.py 0.00% <0.00%> (ø)
...Suite/providers/oci/resources/identity/api_keys.py 0.00% <0.00%> (ø)
...ite/providers/aws/resources/rds/parametergroups.py 0.00% <0.00%> (ø)
...iders/azure/resources/virtualmachines/instances.py 0.00% <0.00%> (ø)
ScoutSuite/providers/aws/resources/vpc/base.py 0.00% <0.00%> (ø)
... and 283 more

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 eac628c...71b0980. Read the comment docs.

@klauern
Copy link
Contributor Author

klauern commented Jun 9, 2020

I can't get the travis-ci check to do anything.

@x4v13r64
Copy link
Collaborator

I can't get the travis-ci check to do anything.

Looks like I also have to remove the integration on our end, I'll do it when merging this PR.

@klauern klauern changed the title switch from nose to pytest / switch to GitHub Actions switch from nose to pytest + GitHub Actions Jun 10, 2020
@x4v13r64 x4v13r64 added this to the 5.10 milestone Jun 11, 2020
Copy link
Contributor

@alessandrogonzalez alessandrogonzalez left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Coverage has been reduced as now it looks like all the files in the project are taken into account. We'll have better visibility of the overall coverage.

@x4v13r64 x4v13r64 changed the base branch from develop to release/5.10 July 2, 2020 10:04
@x4v13r64 x4v13r64 merged commit fde9d71 into release/5.10 Jul 2, 2020
@x4v13r64 x4v13r64 deleted the feature/pytest branch July 2, 2020 10:05
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.

5 participants