Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ A documentation generator for Dart.

[![Build Status](https://travis-ci.org/dart-lang/dartdoc.svg)](https://travis-ci.org/dart-lang/dartdoc)

[![Coverage Status](https://img.shields.io/coveralls/dart-lang/dartdoc.svg)](https://coveralls.io/r/dart-lang/dartdoc)

Note: This tool is currently in pre-alpha stage.

## FAQ
Expand Down
2 changes: 2 additions & 0 deletions test/all.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
library dartdoc.all_tests;

import 'template_test.dart' as template_tests;
import 'model_test.dart' as model_tests;

main() {
template_tests.tests();
model_tests.tests();
}
18 changes: 18 additions & 0 deletions test/model_test.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

library dartdoc.model_test;

import 'package:dartdoc/src/model.dart';
import 'package:unittest/unittest.dart';

tests() {
group('Class', () {

test('has correct type name', () {
var c = new Class(null, null);
expect(c.typeName, equals('Classes'));
});
});
}
10 changes: 10 additions & 0 deletions tool/travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,13 @@ dartanalyzer --fatal-warnings \

# Run the tests.
dart test/all.dart

# Gather and send coverage data.
if [ "$REPO_TOKEN" ]; then
pub global activate dart_coveralls
pub global run dart_coveralls report \
--token $REPO_TOKEN \
--retry 2 \
--exclude-test-files \
test/all.dart
fi