Skip to content

Instantly share code, notes, and snippets.

@RobertBrunhage
Created January 2, 2021 15:07
Show Gist options
  • Save RobertBrunhage/01140a201b7ee5697fd45ee0d4a1ebb7 to your computer and use it in GitHub Desktop.
Save RobertBrunhage/01140a201b7ee5697fd45ee0d4a1ebb7 to your computer and use it in GitHub Desktop.
These snippets I have gotten from FilledStacks so make sure to follow him!
{
"Main Test Suite Setup": {
"prefix": "testm",
"body": [
"import 'package:flutter_test/flutter_test.dart';",
"",
"void main() {",
" group('${1:${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/g}} -', (){",
"",
" });",
"}"
],
"description": "Main Test Suite Setup"
},
"Test Group Setup": {
"prefix": "testg",
"description": "Creates a Test group with a test",
"body": [
"group('${1} -', () {",
" test('${2}', () {",
"",
" });",
"});",
]
},
"Single Test Setup": {
"prefix": "tests",
"description": "Creates a single test",
"body": [
" test('${1}', () {",
"",
" });",
]
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment