From owner-freebsd-testing@FreeBSD.ORG Wed Nov 27 04:47:31 2013 Return-Path: Delivered-To: freebsd-testing@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D48067F6 for ; Wed, 27 Nov 2013 04:47:31 +0000 (UTC) Received: from mail-we0-x236.google.com (mail-we0-x236.google.com [IPv6:2a00:1450:400c:c03::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5F336264E for ; Wed, 27 Nov 2013 04:47:31 +0000 (UTC) Received: by mail-we0-f182.google.com with SMTP id q59so6383392wes.27 for ; Tue, 26 Nov 2013 20:47:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=x93q5qDPfbIC1EhTrsFqJvAxDWX+AwIXC45z44YxsuQ=; b=wxX87cNcljlEvz3l3bu/Z2LMUDrr4K6Vn8fN1bUrTM7+zHwaXkV70XsNZ4WU0TyQw6 1AoL9KibK+K2MvOwh5dn0kZKAKU2YndSj5feLXNOVLhTXuYBZ4wqvckpuWYTYk7h+C0v qT1P9wwlBUt1PxIJxpcKmVjqn5oowXcl2OK5NltDxO6d3eTPo7rQ2IbkuHPDjRoFeu3x XEzPWgjdFlJe726ARlOKa1DdX6STT8RJwXEGznq8/x7azGnaCwgqLt3pB4HKGjNOtisQ zWPsFki0g1XCmQOlFHAgVCekpac6a9ierVMcVkRQk8LXIIsROuXZmNNi1gvWBgSjTbNy DjyA== MIME-Version: 1.0 X-Received: by 10.194.122.99 with SMTP id lr3mr28952581wjb.21.1385527649916; Tue, 26 Nov 2013 20:47:29 -0800 (PST) Sender: asomers@gmail.com Received: by 10.194.171.35 with HTTP; Tue, 26 Nov 2013 20:47:29 -0800 (PST) Date: Tue, 26 Nov 2013 21:47:29 -0700 X-Google-Sender-Auth: H6Ixf14lV0q45l_8LwfFCEG8-1A Message-ID: Subject: Python unittest backend for Kyua From: Alan Somers To: kyua-discuss@googlegroups.com, "freebsd-testing@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.16 X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Nov 2013 04:47:32 -0000 I wrote a Kyua backend for Python programs that use the unittest module from the standard library. It's incomplete (no man page, no tests, no test case isolation, and no tested version of python other than 2.7), but I'm posting it to discuss the approach. Do you think it's a good start? Rather than use unittest's CLI, I wrote the backend to dynamically load the file under test and interrogate the test using unittest as a library. This allowed more intimate access. For example, the unittest CLI doesn't have a "list" command, but the backend can still list tests. Does it look good so far? -Alan