Skip to content

Test APIs to make it easier to create robust test for package:source_gen Generators

License

Notifications You must be signed in to change notification settings

Fidev-io/source_gen_test

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Pub Package Version

Make it easy to test Generators derived from package:source_gen by annotating test files.

@ShouldGenerate(
  r'''
const TestClass1NameLength = 10;

const TestClass1NameLowerCase = testclass1;
''',
  configurations: ['default', 'no-prefix-required'],
)
@ShouldThrow(
  'Uh...',
  configurations: ['vague'],
  element: false,
)
@TestAnnotation()
class TestClass1 {}

Other helpers are also provided.

About

Test APIs to make it easier to create robust test for package:source_gen Generators

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dart 100.0%