Return-Path: X-Original-To: apmail-couchdb-commits-archive@www.apache.org Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2407318B8E for ; Tue, 14 Jul 2015 22:49:09 +0000 (UTC) Received: (qmail 64819 invoked by uid 500); 14 Jul 2015 22:49:09 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 64765 invoked by uid 500); 14 Jul 2015 22:49:09 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 64756 invoked by uid 99); 14 Jul 2015 22:49:09 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jul 2015 22:49:09 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 96DD6E1126; Tue, 14 Jul 2015 22:49:08 +0000 (UTC) From: eiri To: commits@couchdb.apache.org Reply-To: commits@couchdb.apache.org References: In-Reply-To: Subject: [GitHub] couchdb-khash pull request: Migrate the tests from etap to eunit Content-Type: text/plain Message-Id: <20150714224908.96DD6E1126@git1-us-west.apache.org> Date: Tue, 14 Jul 2015 22:49:08 +0000 (UTC) Github user eiri commented on a diff in the pull request: https://github.com/apache/couchdb-khash/pull/2#discussion_r34629471 --- Diff: test/khash_test.erl --- @@ -0,0 +1,443 @@ +-module(khash_test). + +-compile([export_all]). + +-define(NODEBUG, true). --- End diff -- Well, I use rebar 2.5.1 under Ubuntu, tried both to R14B01 and R17.6.5 and I definitely got tests compiled with TEST flag ``` 1> ls(). gen_term.beam gen_term.erl khash.beam khash.erl khash_test.beam khash_test.erl ok 2> beam_lib:chunks("khash_test.beam", [compile_info]). {ok,{khash_test,[{compile_info,[{options,[export_all, {outdir,".eunit"}, {d,'TEST'}, debug_info,debug_info, {i,"include"}, return_errors,return_warnings,export_all]}, {version,"4.7.2"}, {time,{2015,7,14,22,29,36}}, {source,"/home/vagrant/git/couchdb/src/khash/test/khash_test.erl"}]}]}} ``` My runtime 5 sec which kind of feels like tests are actually running and if I screw with the assertions they are properly failing. Can you please check compile_info on your test's beam? I mean I don't mind to remote `NODEBUG` flag, I'm not that attached to it, but just for sake of understanding of what's going on here. [https://github.com/rebar/rebar/blob/master/src/rebar_erlc_compiler.erl#L234](This line) --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---