Return-Path: Delivered-To: mailing list dev@mrql.incubator.apache.org Received: (qmail 96806 invoked by uid 99); 17 Apr 2014 12:16:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Apr 2014 12:16:40 +0000 X-ASF-Spam-Status: No, hits=-2001.0 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 17 Apr 2014 12:16:38 +0000 Received: (qmail 95185 invoked by uid 99); 17 Apr 2014 12:16:18 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Apr 2014 12:16:18 +0000 Date: Thu, 17 Apr 2014 12:16:18 +0000 (UTC) From: "Leonidas Fegaras (JIRA)" To: dev@mrql.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MRQL-34) Introduce junit for testing 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/MRQL-34?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13972865#comment-13972865 ] Leonidas Fegaras commented on MRQL-34: -------------------------------------- I don't know your code, but if I have : public void setUp() throws Exception { Config.compile_functional_arguments = false; createEvaluator(); Translator.global_reset(); } I get the following errors: Tests in error: testCore1ArrayPlus(org.apache.mrql.MapReduceEvaluatorInMemoryTest) testCore1TupleIndex(org.apache.mrql.MapReduceEvaluatorInMemoryTest) testCore1Cast(org.apache.mrql.MapReduceEvaluatorInMemoryTest) testCore1Math(org.apache.mrql.MapReduceEvaluatorInMemoryTest) testCore1Variable(org.apache.mrql.MapReduceEvaluatorInMemoryTest) testCore1Array(org.apache.mrql.MapReduceEvaluatorInMemoryTest) testCore1Range(org.apache.mrql.MapReduceEvaluatorInMemoryTest) Tests run: 54, Failures: 0, Errors: 7, Skipped: 0 If I remove createEvaluator(), I will get: Tests run: 54, Failures: 0, Errors: 0, Skipped: 0 > Introduce junit for testing > --------------------------- > > Key: MRQL-34 > URL: https://issues.apache.org/jira/browse/MRQL-34 > Project: MRQL > Issue Type: Improvement > Reporter: Lee moon soo > Attachments: MRQL-34.patch, MRQL-34_a.patch, MRQL-34_b.patch > > > MRQL has testcase and it's run as java standalone application by org.apache.mrql.Test. > The Test class Invoked by maven antrun plugin at test phase > and then load the queries and generate result and compare with the previous result (if result exists) > If junit runs those test case instead of antrun, it'll give some advantages > 1. More common ways to adding / running test in Java > 2. Once CI is setup, junit produces information for CI about details of test. -- This message was sent by Atlassian JIRA (v6.2#6252)