Bug 39621 - [EasyHack] Make unit tests easier to debug
Summary: [EasyHack] Make unit tests easier to debug
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: difficultyBeginner, easyHack, skillScript
Depends on:
Blocks:
 
Reported: 2011-07-28 07:23 UTC by Björn Michaelsen
Modified: 2015-12-15 16:24 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Björn Michaelsen 2011-07-28 07:23:12 UTC
=== Make unit tests easier to debug ===

'''Background:''' Our in-code unit tests are wonderful tools for catching bugs, but sometimes they fail on different platforms and for different users (this helps us catch bugs). Unfortunately, people are unaware that they need to get a stack trace by doing:

build -- debugcppunit=t

So - we should add a wrapper script around all cppunit tests, that tells people about this magic option if the test fails. See solenv/inc/settings.mk's CPPUNITTESTER= assignment, and GDBCPPUNITTRACE pieces. We should probably use something similar to solenv/bin/build.pl's warning on failure (including sourcing the environment), to make it easy to cut/paste the right lines.

'''Skills:''' perl, dmake
Comment 1 Markus Mohrhard 2011-11-18 14:24:41 UTC
Hey Bjoern,

I think Michael did something in this direction.
Comment 2 Björn Michaelsen 2011-11-21 02:54:06 UTC
@Michael: Please check if (and how much) of the Easy Hack is still valid.
Comment 3 Michael Meeks 2011-11-21 05:06:02 UTC
Yep, I got fed up of trying to remember this myself & fixed it (at least for gnumake) in master.
Comment 4 Robinson Tryon (qubit) 2015-12-15 16:24:52 UTC
Migrating Whiteboard tags to Keywords: (EasyHack DifficultyBeginner SkillScript )
[NinjaEdit]