File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import 'dart:async';
88import 'dart:io' ;
99
1010import 'package:dartdoc/dartdoc.dart' ;
11+ import 'package:dartdoc/src/logging.dart' ;
1112import 'package:dartdoc/src/model.dart' ;
1213import 'package:dartdoc/src/tuple.dart' ;
1314import 'package:dartdoc/src/warnings.dart' ;
@@ -16,17 +17,25 @@ import 'package:test/test.dart';
1617
1718import 'src/utils.dart' ;
1819
20+ class DartdocLoggingOptionContext extends DartdocGeneratorOptionContext with LoggingContext {
21+ DartdocLoggingOptionContext (DartdocOptionSet optionSet, Directory dir)
22+ : super (optionSet, dir);
23+ }
24+
1925void main () {
2026 group ('dartdoc with generators' , () {
2127 Directory tempDir;
2228 List <String > outputParam;
23- setUpAll (() {
29+ setUpAll (() async {
2430 tempDir = Directory .systemTemp.createTempSync ('dartdoc.test.' );
2531 outputParam = ['--output' , tempDir.path];
32+ DartdocOptionSet optionSet = await DartdocOptionSet .fromOptionGenerators ('dartdoc' , [createLoggingOptions]);
33+ optionSet.parseArguments ([]);
34+ startLogging (new DartdocLoggingOptionContext (optionSet, Directory .current));
2635 });
2736
28- tearDownAll (() {
29- delete ( tempDir);
37+ tearDown (() async {
38+ tempDir. listSync (). forEach (( FileSystemEntity f) {f. deleteSync (recursive : true );} );
3039 });
3140
3241 Future <Dartdoc > buildDartdoc (
You can’t perform that action at this time.
0 commit comments