Automation test Brick
Mason Brick to create a template for integration test
Setup Brick š
- Install mason_cli:
dart pub global activate mason_cli
- Activate view bricks
- From brickhub
mason add automation_test
- Using
mason add
command
mason add view
--git-url https://github.com/GameOnAnil/vanilla-stacked-bricks.git
--git-path bricks/automation_test
- Add directly to
mason.yaml
bricks:
view:
git:
url: 'https://github.com/GameOnAnil/vanilla-stacked-bricks.git'
path: 'bricks/automation_test'
How to use š
Command Line
mason make view
The you will get prompt
modulename?
Then add your properties! (Optional)
Variables for the Command Line āØ
Variable | Description | Type |
---|---|---|
modulename | The name of feature / module this integration test belongs to | String |
Generate File Structure
integration_test
ā sample
ā ā£ common
ā ā ā sample_common.dart
ā ā£ finders
ā ā ā sample_finders.dart
ā ā sample_test.dart