unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Problems with the test suite
@ 2020-09-25 21:51 Jesse Gibbons
  2020-10-05 12:30 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Jesse Gibbons @ 2020-09-25 21:51 UTC (permalink / raw)
  To: guix-devel

I'm still working on making 43193 ready to apply. I added a test, and it 
looks like my to the build script --with-source option broke something. 
I am getting error messages, but I don't know where in the code they are 
occurring. Is there any way I can get a stack trace when errors are 
raised during tests? I also noticed nearly all of the tests assert 
multiple things simultaneously, compounded by the `and` function. When 
one of those things is found to be false, the test fails, but I don't 
know which part of the assertion is false.

Are there any advantages to using Guix's custom testing API over other 
testing APIs like SRFI-64? If not, why not transition the test suite to 
use one of them?

-Jesse




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Problems with the test suite
  2020-09-25 21:51 Problems with the test suite Jesse Gibbons
@ 2020-10-05 12:30 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2020-10-05 12:30 UTC (permalink / raw)
  To: Jesse Gibbons; +Cc: guix-devel

Hi,

Jesse Gibbons <jgibbons2357@gmail.com> skribis:

> I'm still working on making 43193 ready to apply. I added a test, and
> it looks like my to the build script --with-source option broke
> something. I am getting error messages, but I don't know where in the
> code they are occurring. Is there any way I can get a stack trace when
> errors are raised during tests? I also noticed nearly all of the tests
> assert multiple things simultaneously, compounded by the `and`
> function. When one of those things is found to be false, the test
> fails, but I don't know which part of the assertion is false.

Could you show exactly the output you’re getting?

SRFI-64 ‘test-assert’ & co. report exceptions but they don’t show you
the backtrace.  The trick you can use to see the exception is to “lift”
your test expression outside ‘test-assert’:

  (test-assert "test my stuff
    (begin my code …))

  =>

  (begin my code …)

> Are there any advantages to using Guix's custom testing API over other
> testing APIs like SRFI-64? If not, why not transition the test suite
> to use one of them?

Guix uses plain SRFI-64.

HTH,
Ludo’.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-10-05 12:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-25 21:51 Problems with the test suite Jesse Gibbons
2020-10-05 12:30 ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.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).