Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 31613 invoked from network); 3 Apr 2009 12:02:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Apr 2009 12:02:44 -0000 Received: (qmail 4640 invoked by uid 500); 3 Apr 2009 12:02:40 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 4573 invoked by uid 500); 3 Apr 2009 12:02:40 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 4536 invoked by uid 99); 3 Apr 2009 12:02:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 12:02:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 12:02:38 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 44277234C4AF for ; Fri, 3 Apr 2009 05:02:17 -0700 (PDT) Message-ID: <1285776877.1238760137278.JavaMail.jira@brutus> Date: Fri, 3 Apr 2009 05:02:17 -0700 (PDT) From: "Steve Loughran (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Assigned: (HADOOP-5621) MapReducer to run junit tests under Hadoop In-Reply-To: <1402987035.1238757852954.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-5621?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Steve Loughran reassigned HADOOP-5621: -------------------------------------- Assignee: Steve Loughran > MapReducer to run junit tests under Hadoop > ------------------------------------------ > > Key: HADOOP-5621 > URL: https://issues.apache.org/jira/browse/HADOOP-5621 > Project: Hadoop Core > Issue Type: New Feature > Affects Versions: 0.21.0 > Reporter: Steve Loughran > Assignee: Steve Loughran > > This is something I mentioned to some people last week, thought I would start a discussion on it. > We could run junit tests as a MapReduce job with > # a mapper that takes a list of classes, one per line > # extracts the test suite from each class, and then invokes each test method. This would be a new junit test runner. > # saves the result (and any exceptions) as the output. Also saves any machine specific details. > # It also needs to grab the System.out and System.err channels, to map them to specific tests. > # Measure how long the tests took (incuding setup/teardown time) > # Add an ant task to take filesets and other patterns, and generate text files from the contents (with stripping of prefixes and suffices, directory separator substition, file begin/end values, etc, etc). I have this with tests already. > The result would be that you could point listresources at a directory tree and create a text file listing all tests to run. These could be executed across multiple hosts and the results correlated. It would be, initially, a MapExpand, as the output would be bigger than the input > Feature creep then becomes the analysis > # Add another MR class which runs through all failing tests and creates a new list of test classes that failed. This could be rescheduled on different runs, and makes for a faster cycle (only run failing tests until they work) > # Add something to only get failing tests, summarise them (somehow) in a user readable form > # Something to get partially failing tests and highlight machine differences. > # Add something to compare tests over time, detect those which are getting slower? > # an MR to regenerate the classic Ant junit XML reports, for presentation in other tools (like hudson) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.