Skip to content

Commit

Permalink
Improve powershell script
Browse files Browse the repository at this point in the history
  • Loading branch information
Iftakharpy committed Feb 1, 2024
1 parent ef2c7dc commit f2d58bb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions coverage.ps1
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
param(
[bool]$clean = $false
[switch]$clean
)

# Responsible for cleaning coverage files
function Clean {
Remove-Item -Path .\htmlcov -Recurse -Force
# Pytest coverage files
Remove-Item -Path .\*.coverage -Force

# Coverage report files
Remove-Item -Path .\htmlcov -Recurse -Force

# Remove pycache files
Get-ChildItem $Path -Recurse | Where{$_.Name -Match ".*pycache.*"} | Remove-Item -Force -Recurse
}

# Responsible for generating coverage report
Expand Down

0 comments on commit f2d58bb

Please sign in to comment.