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';
8
8
import 'dart:io' ;
9
9
10
10
import 'package:dartdoc/dartdoc.dart' ;
11
+ import 'package:dartdoc/src/logging.dart' ;
11
12
import 'package:dartdoc/src/model.dart' ;
12
13
import 'package:dartdoc/src/tuple.dart' ;
13
14
import 'package:dartdoc/src/warnings.dart' ;
@@ -16,17 +17,25 @@ import 'package:test/test.dart';
16
17
17
18
import 'src/utils.dart' ;
18
19
20
+ class DartdocLoggingOptionContext extends DartdocGeneratorOptionContext with LoggingContext {
21
+ DartdocLoggingOptionContext (DartdocOptionSet optionSet, Directory dir)
22
+ : super (optionSet, dir);
23
+ }
24
+
19
25
void main () {
20
26
group ('dartdoc with generators' , () {
21
27
Directory tempDir;
22
28
List <String > outputParam;
23
- setUpAll (() {
29
+ setUpAll (() async {
24
30
tempDir = Directory .systemTemp.createTempSync ('dartdoc.test.' );
25
31
outputParam = ['--output' , tempDir.path];
32
+ DartdocOptionSet optionSet = await DartdocOptionSet .fromOptionGenerators ('dartdoc' , [createLoggingOptions]);
33
+ optionSet.parseArguments ([]);
34
+ startLogging (new DartdocLoggingOptionContext (optionSet, Directory .current));
26
35
});
27
36
28
- tearDownAll (() {
29
- delete ( tempDir);
37
+ tearDown (() async {
38
+ tempDir. listSync (). forEach (( FileSystemEntity f) {f. deleteSync (recursive : true );} );
30
39
});
31
40
32
41
Future <Dartdoc > buildDartdoc (
You can’t perform that action at this time.
0 commit comments