anchor.diff:  import 'dart:io';
   
   import 'package:mustache4dart/mustache4dart.dart';
  +import 'package:path/path.dart' as p;
   import 'package:unittest/unittest.dart';
   
   void main() {
     group('template', () {
  -    var script = new File(Platform.script.toFilePath());
  -    File tmplFile =
  -        new File('${script.parent.parent.path}/templates/sitemap.xml');
  +    group('with sitemap', () {
  +      var sitemap;
   
  -    test('sitemap template exists', () {
  -      tmplFile.exists().then((t) => expect(t, true));
  -    });
  +      setUp(() {
  +        if (sitemap == null) {
  +          var templatePath = p.join(p.current, 'templates/sitemap.xml');
  +          File tmplFile = new File(templatePath);
  +          var siteMapTmpl = tmplFile.readAsStringSync();
  +          sitemap = compile(siteMapTmpl);
  +        }
  +      });
   
  -    var siteMapTmpl = tmplFile.readAsStringSync();
  -    var sitemap = compile(siteMapTmpl);
  -
  -    test('render', () {
  -      expect(sitemap({'links': [{'name': 'somefile.html'}]}), '''
  +      test('render', () {
  +        expect(sitemap({'links': [{'name': 'somefile.html'}]}), '''
   <?xml version="1.0" encoding="UTF-8"?>
   <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
     <url>
  
positive.code:   </url>
  </urlset>
  ''');
      });
  
      test('url and file name', () {
        expect(sitemap({
          'url': 'http://mydoc.com',
          'links': [{'name': 'somefile.html'}]
        }), '''
  <?xml version="1.0" encoding="UTF-8"?>
  <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
    <url>
  
negative.code:   </url>
  </urlset>
  ''');
        });
      });
    });
  }
  