clean up test script
diff --git a/appveyor.yml b/appveyor.yml
index 564de7a..7dd3332 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -11,8 +11,5 @@
 build: off
 
 test_script:
-  - dart example\list.dart
-  - pub global activate dart_coveralls
-  - dart example\list.dart
   - dartanalyzer --fatal-warnings example\list.dart lib\pub_cache.dart test\all.dart
   - dart test\all.dart
diff --git a/test/all.dart b/test/all.dart
index 51a8a08..da28344 100644
--- a/test/all.dart
+++ b/test/all.dart
@@ -2,8 +2,17 @@
 // 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.
 
+import 'dart:io';
+
+import 'package:pub_cache/pub_cache.dart';
+
 import 'pub_cache_test.dart' as pub_cache_test;
 
 void main() {
+  // We need at least one activated application for our test suite.
+  if (new PubCache().getGlobalApplications().isEmpty) {
+    Process.runSync('pub', ['global', 'activate', 'dart_coveralls']);
+  }
+
   pub_cache_test.defineTests();
 }
diff --git a/test/pub_cache_test.dart b/test/pub_cache_test.dart
index c06feda..3c6ac53 100644
--- a/test/pub_cache_test.dart
+++ b/test/pub_cache_test.dart
@@ -10,21 +10,6 @@
 import 'package:pub_cache/pub_cache.dart';
 import 'package:unittest/unittest.dart';
 
-void main() {
-  // We need at least one activated application for our test suite.
-  PubCache cache = new PubCache();
-  print('apps: ' + cache.getGlobalApplications().toString());
-
-  if (cache.getGlobalApplications().isEmpty) {
-    ProcessResult result = Process.runSync('pub', ['global', 'activate', 'dart_coveralls']);
-    print(result.exitCode);
-    print(result.stdout);
-    print(result.stderr);
-  }
-
-  defineTests();
-}
-
 void defineTests() {
   final String cacheDirName = Platform.isWindows ? 'Cache' : 'pub-cache';