emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: =?ISO-8859-15?Q?Andreas_R=F6hler?= <andreas.roehler@easy-emacs.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: tests with travis-ci
Date: Fri, 22 Mar 2013 08:55:43 -0400	[thread overview]
Message-ID: <6085.1363956943@alphaville> (raw)
In-Reply-To: Message from =?ISO-8859-15?Q?Andreas_R=F6hler?= <andreas.roehler@easy-emacs.de> of "Fri\, 22 Mar 2013 07\:40\:22 BST." <514BFCD6.2040009@easy-emacs.de>

Andreas Röhler <andreas.roehler@easy-emacs.de> wrote:

> Am 21.03.2013 21:41, schrieb Bastien:
> [ ... ]
> > Yes.  The limitation of the pre-push hook comes from the fact that
> > various developers may have various testing environments, no one
> > should be prevented from pushing by the fact that tests do not pass
> > for someone else.
> 
> [ ... ]
> 
> Hi,
> 
> just to ask about some more aspects:
> 
> - Typos often will break it from the beginning, so complete tests must not run all every time.
>   Will some testing at all is needed to detect the typos...
> 

Yes, run `make test'.

Bastien already added a note to Worg, asking developers to run `make
test' before pushing.  That leaves it at the discretion of the
developer, rather than having it run automatically from some hook which
might have problems of its own. I believe that once developers (any
that don't do so already) try it, they will find out the great benefits
of doing so. And then both the problem and this discussion will die down
:-)

> - org-mode has already a directory testing. It was not obvious for me how to make use of it.
>   Exists some docu wrt available tests?
> 

What we are talking about here is running existing test cases.
For that, you just say `make test' to run the test suite.

Creating new test cases and adding them to the test suite is a different
matter of course.  There is a useful README in the testing/ directory 
and an examples/ subdir, but you can  also just pick one of the existing
tests in the lisp/ subdir and read it. Perhaps not the best example, but

  http://article.gmane.org/gmane.emacs.orgmode/62908/match=ert

shows a minimal .emacs with a test case added. It should at least
clarify the mechanics of creating and running a new test case, stripped
down to its bare essentials.

> - usually you know about the range of changes.
>   Limited tests checking certain features seem useful
> 

Not worth bothering about IMO: just run the whole test suite.

Nick

  reply	other threads:[~2013-03-22 12:55 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-20  2:54 [BUG] ob-sql.el: probably an extra paren Nick Dokos
2013-03-20  6:47 ` Bastien
2013-03-20 12:39 ` Sebastien Vauban
2013-03-20 13:47   ` Bastien
2013-03-21  8:28     ` Achim Gratz
2013-03-21 13:41       ` Bastien
2013-03-21 14:03         ` Nicolas Richard
2013-03-21 16:58         ` Yagnesh Raghava Yakkala
2013-03-21 17:31           ` Bastien
2013-03-21 18:40             ` tests with travis-ci (was: [BUG] ob-sql.el: probably an extra paren) Yagnesh Raghava Yakkala
2013-03-21 20:41               ` tests with travis-ci Bastien
2013-03-21 22:20                 ` Yagnesh Raghava Yakkala
2013-03-22  7:56                   ` Yann Hodique
2013-03-22 10:40                     ` Yagnesh Raghava Yakkala
2013-03-31 19:07                       ` Yann Hodique
2013-03-22  6:40                 ` Andreas Röhler
2013-03-22 12:55                   ` Nick Dokos [this message]
2013-03-22 13:07                     ` Andreas Röhler
2013-03-21 17:38         ` [BUG] ob-sql.el: probably an extra paren Achim Gratz
2013-03-21 17:59           ` Bastien
2013-03-22  7:01             ` Achim Gratz
2013-03-22  7:36               ` Bastien
2013-03-22  7:59                 ` Achim Gratz
2013-04-06  0:46                   ` Bastien
2013-03-22 10:44               ` Yagnesh Raghava Yakkala
2013-03-21  8:37     ` Sebastien Vauban

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6085.1363956943@alphaville \
    --to=nicholas.dokos@hp.com \
    --cc=andreas.roehler@easy-emacs.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).