From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Douglas Lewan Newsgroups: gmane.emacs.help Subject: Undefining an ERT test? Date: Thu, 11 Jun 2020 17:52:31 -0400 Message-ID: <30b33d01-3196-af12-fd6e-db9516829a49@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="103888"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 11 23:53:02 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jjV89-000Qs5-6v for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 11 Jun 2020 23:53:01 +0200 Original-Received: from localhost ([::1]:39478 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jjV88-0003NV-8g for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 11 Jun 2020 17:53:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39828) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jjV7q-0003NN-6m for help-gnu-emacs@gnu.org; Thu, 11 Jun 2020 17:52:42 -0400 Original-Received: from mail-qt1-x82d.google.com ([2607:f8b0:4864:20::82d]:45944) by eggs.gnu.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jjV7o-0004Lt-Os for help-gnu-emacs@gnu.org; Thu, 11 Jun 2020 17:52:41 -0400 Original-Received: by mail-qt1-x82d.google.com with SMTP id y1so5658588qtv.12 for ; Thu, 11 Jun 2020 14:52:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=/AaxwXGFIwIRJ8wDhRE0NXj6ok2DPdQbDfyQFgYU1xE=; b=hTdNI1WD/SL4lQF2yb2um4+TJf7EdD6sr2Up0NTf/4scNWew4cLkTO8kZexdW+YM3D GNHKSswCCqsjy+wGNPt1VdVFBu+nWgLX6TzMj2L0y5lPohrVoFsRSpa9IUvHWkh0Xj4o meHy/307x8gC1NbqHWQaQ7cEgxeLUwfVodL4kBkN5rt/8fr5ktnvpJVcVwtDbeLCs7F+ Qtrb/SrMRKlAZ1rQziQZ9VIgvFJigLShow0IcI1rTsPSRobBo6i5UuiUK524OH3WP/vV mLa9MZjttmhcM7OdIFV2i/v7zE/ObdLC2VK6UqVcXoQ0mWJu91EnwXnQrvCFpX3dE2Er gITQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=/AaxwXGFIwIRJ8wDhRE0NXj6ok2DPdQbDfyQFgYU1xE=; b=dGMU1txdT/WcQln5vqck46loEtCVmM2Azztk/fdf/UqZ6i9FlHw+v5MfVwsr8Iy7da +Da7Y1AiGcsrlDRWn0H8MU1K4hGufbrQf0BM99keXiwUt0SOr6Wso+2VS41748/Q7w/D hCsHU7bFnflJthinATwlMNgUXw/QiYVnseLlu9mVcfLMG7mHuMc3wWMv4K67aCxb7R25 SumOcpD8viCxA1umGxu3BUfvuxvx7htRu3bYJbxQnougKFOs7ZpmH0EqgFrGSGB2pI5r zhw9HKkCIneW9ukz+uaBCMZ5pWN8y/R5I6OnzqEHyseELKBsL5BqcZF6TAOKDjWDbbJr lsUg== X-Gm-Message-State: AOAM532EdVI7Fjym54JyTnF2jq41nQFzt4nw06i31DrT2UM8ScVgGmKH zDWCpuNghyYvooUjQbulvXhlKnRBDw== X-Google-Smtp-Source: ABdhPJyHOH7gs+qCit8RMlFifjM5Ozknq1yFzcysr0IzQYe/9siDn9tQR8AEzo54elqqI4gPZ1Tk5w== X-Received: by 2002:ac8:3f77:: with SMTP id w52mr48260qtk.161.1591912353745; Thu, 11 Jun 2020 14:52:33 -0700 (PDT) Original-Received: from [192.168.43.104] ([172.58.236.143]) by smtp.gmail.com with ESMTPSA id h5sm3174968qkk.108.2020.06.11.14.52.32 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Jun 2020 14:52:33 -0700 (PDT) Content-Language: en-US Received-SPF: pass client-ip=2607:f8b0:4864:20::82d; envelope-from=d.lewan2000@gmail.com; helo=mail-qt1-x82d.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:123341 Archived-At: For me one flaw of ERT is that it runs tests in alphabetical order, not the order in which they were defined. I'd like to test initialization before I test more interesting function, for example. To get around this my tests tend to begin with a 3 digit number (starting at 000), and I have code that will renumber them for me. (Test 000-... runs before test 001-..., before 002-..., etc.) Unfortunately, ERT remembers the previous names (and the corresponding test) and when I want to run test 012-..., for example, with (ert "012-") ERT might pick up a "former" test with a matching name. This is not unsurmountable, but it's distracting and occasionally confusing. So, the question is: Is there something like (fmakunbound) for ERT? -- ,Doug d.lewan2000@gmail.com (908) 720 7908 If this is what winning looks like, I'd hate to see what losing is.