Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1F3E5101FF for ; Mon, 28 Oct 2013 12:18:25 +0000 (UTC) Received: (qmail 90752 invoked by uid 500); 28 Oct 2013 12:18:24 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 90659 invoked by uid 500); 28 Oct 2013 12:18:22 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 90495 invoked by uid 99); 28 Oct 2013 12:18:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Oct 2013 12:18:21 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of drkemp@google.com designates 209.85.212.48 as permitted sender) Received: from [209.85.212.48] (HELO mail-vb0-f48.google.com) (209.85.212.48) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Oct 2013 12:18:16 +0000 Received: by mail-vb0-f48.google.com with SMTP id o19so373162vbm.35 for ; Mon, 28 Oct 2013 05:17:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=TR9khlFwGpoacPuiD7chii0X+Tnl4eroOSr1aj5AV9c=; b=Btm6n9rRyWt/PjQTvYzvduuUH0/hk8TcGtmJKHvINpa46WlqVNypZ3fwAoOaU91CLx Iu6msuGSaO1mYt+TdsxsW0wVyz8teUtLZNIoXzwtu3t42Bs7FY6kRg6b3qpchvfRYblZ JUmd7YBNxxhQD8a9wOfbXTy+Vs0iXeRKGzmd5jnDKtm+7ZId7jCyjyq26s9XUDGOAXVV XAUGa/+yE11RdWQetQlHqPGO+HLYl5w/DaALA/fWSed854uCbyXIm0zUBj0fLO7nIhhP 0EQjtuv0UPmSp30gfohxfkTSL8gJf2AjCS0b7ty8YxbtpiOwprfEByt3A/JTASzGAYKS ZYZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=TR9khlFwGpoacPuiD7chii0X+Tnl4eroOSr1aj5AV9c=; b=kiCNBpeeNgFRi1O8Cse0BJJ6EX3NhcAPa7iCvj02ucnQENckuvoDdSkFrWawRxFKjk p2m6zreP/6iRAd59hVIENN0CRo5k3x0S1IqbYL28ZoVAbAFFG2RbzNjc5ileRqLawzFm +D5xq+G4STJo+JO5RhBoTwJzjjI6x0BAwvb9otEvG4PZbPJgW+ayBPg4T9gY8HLLsnUh RSP617eRV/SU50zvjhBzUL3rLfxy3rINnwHEQ6PD8lPoKsuYrkvEG9Qz4FlsjIYtDVv8 YViB5rJ0Px61nY/FqWAbdzt5hSQH13lPAlTfb7lrSvoMz9+IplPuQdBqSCvZV9eBWZPs pCyQ== X-Gm-Message-State: ALoCoQmK6tw8UQFmqWa/a3rqKf47RwO+oF0Aso2GAx28X7ijtd/opGaIZOBkoyHr+KEr28uSkCCHQ9n551gnpUrCcRPxBKey4xpRbihHGRDZ4Qboti9xSUSvXwmPdyKFHVWL96wGV9pAdUBTJuQoX5FGKxBTGwJhXGiqfOWerv0/NeIueV7na4AZmuBzpwkBBPgpRzG+Pa/J4VmD/akL6NcMDvhCqAdGRg== MIME-Version: 1.0 X-Received: by 10.220.169.203 with SMTP id a11mr302908vcz.26.1382962675551; Mon, 28 Oct 2013 05:17:55 -0700 (PDT) Received: by 10.52.96.71 with HTTP; Mon, 28 Oct 2013 05:17:55 -0700 (PDT) In-Reply-To: <526c822d.caa7420a.6b6e.5b46@mx.google.com> References: <526c822d.caa7420a.6b6e.5b46@mx.google.com> Date: Mon, 28 Oct 2013 08:17:55 -0400 Message-ID: Subject: Re: Mobile spec tests and exclusion list From: David Kemp To: dev@cordova.apache.org Content-Type: multipart/alternative; boundary=047d7b6721c4039f6c04e9cc170a X-Virus-Checked: Checked by ClamAV on apache.org --047d7b6721c4039f6c04e9cc170a Content-Type: text/plain; charset=ISO-8859-1 -1 for known failing tests. You need to have them all pass for a clean run. If the tests don't work, take them out. I would support some additional functionality to the test runner to allow marking tests. We definitely have tests that are know to not work on a platform, OS version or device. Being able to embody that info in the test system would be great. Until we get more stuff cleaned up we also have tests that are flakey and probably should just trigger a rerun if they fail. My preference is to just fix those though. On Sat, Oct 26, 2013 at 11:02 PM, purplecabbage wrote: > Having a known failure in the tests on wp7 is no biggie, it has always > been there. Just move on ... > > Sent from my iPhone > > > On Oct 26, 2013, at 3:24 PM, Michal Mocny wrote: > > > > We have a proposal and prototype on the table right now for re-working > > tests to ship with plugins, defined according to auto and manual tests. > > > > To accomplish what you ask for would require a specialized testing app > that > > simply runs both at the same time. (this wouldn't be the default, but > would > > be easy to make). > > > > Thus, I think the tests shouldn't be modified (its hard to state at test > > definition time in which fashion they should be used), the test runner > > should. This wont solve the problem today, but perhaps in about a month > it > > could. > > > > -Micha > > > > > > On Sat, Oct 26, 2013 at 6:41 AM, Sergey Grebnov (Akvelon) < > > v-segreb@microsoft.com> wrote: > > > >> Hi Michael, > >> > >> Agree. But taking into account having a way to run all the tests > >> (including ones w/ user interaction) is very useful for Windows Phone I > >> propose the following > >> 1. No changes for non-WP platforms > >> 2. For WP > >> a) Use the following condition for the tests which require user > >> interaction > >> define(..., function(...) { > >> if (isWP8 && !runAll) return; > >> expect(...); > >> ... > >> }) > >> b) Current autotests will run w/o runAll option so won't require user > >> interaction > >> c) Add 'Run All Tests (Extended)' option specifically for WP8 where we > >> will have runAll == true > >> > >> Motivation: > >> 1. I don't think we should move such tests to manual tests for WP only > to > >> be consistent with other platforms - we actually test api call and check > >> result > >> 2. By default all tests will run w/o any user interaction > >> 3. We will have an option to quickly check all api before release via > Run > >> All Tests (Extended). In other case we should have special information > how > >> to check all the api and not to forget to run such special tests. > >> > >> Thx! > >> Sergey > >> -----Original Message----- > >> From: mmocny@google.com [mailto:mmocny@google.com] On Behalf Of Michal > >> Mocny > >> Sent: Saturday, October 26, 2013 4:12 AM > >> To: dev > >> Subject: Re: Mobile spec tests and exclusion list > >> > >> Auto tests should run automatically without intervention. If user > actions > >> is needed for test to pass, we should call that something different > (manual > >> tests have been used). > >> > >> I think some varient of #3 is fine, this isn't a common problem. I > >> wouldn't even test for Medic specifically, since I want my auto tests to > >> run automatically even when testing by hand. > >> > >> define(..., function(...) { > >> if (isWP8) return; > >> expect(...); > >> ... > >> }) > >> > >> -Michal > >> > >> > >> On Fri, Oct 25, 2013 at 4:37 PM, Sergey Grebnov (Akvelon) < > >> v-segreb@microsoft.com> wrote: > >> > >>> Mobile spec autotests include tests which on some platforms require > >>> user interaction to complete. For example, contact save api on Windows > >>> Phone requires user to manually click on save button. This prevents > >>> the tests to be run as part of Medic test automation since test app > >>> just hangs on such api calls. > >>> > >>> Is Windows Phone special or there are similar problem on other > platforms? > >>> > >>> I'm thinking about the following possible approaches: > >>> #1 Ad-hoc solution to Medic - replacing some test files as part of > >>> Medic functionality (some additional wp specific build step). > >>> #2 Extending mobile spec functionality- adding something like tests > >>> exclusion config where you can define test ids (or even the whole api) > >>> to be skipped. Such exclusion list could be generated on the fly and > >>> put to the app before starting tests. > >>> #3 If there are only few such tests we can probably add check for the > >>> current platform to determine whether to include the test. For example: > >>> if(!(window.MedicTestRunner && isWP8)) {testDefinition} Or the same > >>> way but inside the test to fail gracefully. > >>> > >>> Thoughts? > >>> > >>> Thx! > >>> Sergey > >> > --047d7b6721c4039f6c04e9cc170a--