onflow / flow-cli

The Flow CLI is a command-line interface that provides useful utilities for building Flow applications
https://onflow.org
Apache License 2.0
206 stars 66 forks source link

Default `flow test` behaviour to test `**/*_test.cdc` #1550

Closed jribbink closed 5 months ago

jribbink commented 5 months ago

Closes #1378

Description

Removes mandatory requirement for specifying test file names and defaults to **/*_test.cdc (not a breaking change).


For contributor use:

codecov-commenter commented 5 months ago

Codecov Report

Attention: Patch coverage is 20.00000% with 24 lines in your changes are missing coverage. Please review.

Project coverage is 39.39%. Comparing base (4633ff0) to head (f1a197b).

Files Patch % Lines
internal/test/test.go 20.00% 22 Missing and 2 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1550 +/- ## ========================================== - Coverage 39.66% 39.39% -0.28% ========================================== Files 51 51 Lines 3300 3323 +23 ========================================== Hits 1309 1309 - Misses 1826 1847 +21 - Partials 165 167 +2 ``` | [Flag](https://app.codecov.io/gh/onflow/flow-cli/pull/1550/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=onflow) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/onflow/flow-cli/pull/1550/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=onflow) | `39.39% <20.00%> (-0.28%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=onflow#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.