Home | History | Annotate | Download | only in music
      1 /*
      2  * Copyright (C) 2008 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 package com.android.music.tests;
     18 
     19 import android.test.InstrumentationTestRunner;
     20 import android.test.InstrumentationTestSuite;
     21 import com.android.music.tests.functional.TestSongs;
     22 import com.android.music.tests.functional.TestPlaylist;
     23 
     24 import junit.framework.TestSuite;
     25 
     26 
     27 /**
     28  * Instrumentation Test Runner for all Music Player tests.
     29  *
     30  * Precondition: Opened keyboard and wipe the userdata
     31  *
     32  * Running all tests:
     33  *
     34  * adb shell am instrument \
     35  *   -w com.android.music.tests/.MusicPlayerFunctionalTestRunner
     36  */
     37 
     38 public class MusicPlayerFunctionalTestRunner extends InstrumentationTestRunner {
     39 
     40 
     41     @Override
     42     public TestSuite getAllTests() {
     43         TestSuite suite = new InstrumentationTestSuite(this);
     44         suite.addTestSuite(TestSongs.class);
     45         suite.addTestSuite(TestPlaylist.class);
     46         suite.addTestSuite(MusicPlayerStability.class);
     47         return suite;
     48     }
     49 
     50     @Override
     51     public ClassLoader getLoader() {
     52         return MusicPlayerFunctionalTestRunner.class.getClassLoader();
     53     }
     54 }
     55 
     56 
     57 
     58