Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ on:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/parameterized_test

steps:
- uses: actions/checkout@v3
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ dev_dependencies:
parameterized_test: [latest-version]
```

## Usage
## Usage

Instead of using `groups` or `test` you can now use `parameterizedTest` and supply it list of test parameters to use in the same test.
To specify the test body use `TestParametersX` that matches the same amount of test parameters for 1 test. For example when the test has 2 parameters `actual` and `expected` use `TestParameters2` for supplying the test body.
Expand Down Expand Up @@ -106,7 +106,7 @@ parameterizedTest(
'Doge enum tests',
AwesomeEnum.values,
p1((AwesomeEnum doge) {
final result = doge.name.length == 4;
final result = doge.name.length >= 4;
expect(result, true);
}),
);
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading