Re: Unit testing: The Small Plan

2013-05-08 Thread Elmar Hinz
warrant better test automation? Likely the most error-prone corners are the haredest to tests, because of the same reasons. To get started, I would need to do some more simple cases first. I hope some of the veteran developers can help answer these questions. \Elmar -- Elmar Hinz Freiherr

Re: Unit testing: The Small Plan

2013-05-08 Thread Elmar Hinz
to do some more simple cases first. > > I hope some of the veteran developers can help answer these questions. > > \Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m personal contact: e.l.m.a.r.dot.h.i.n...@.g.m.a.i.l.dot.c.o.m

Unit testing: The Small Plan

2013-05-07 Thread Elmar Hinz
, but at least a simple way to get started directly. It is done by use of a simple preprocessor directive: #public_on_testing Once a wall of tests is created to ensure the behaviour of the given API, more skilled approaches can be introduced. \Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014

Re: Unit testing: The Small Plan

2013-05-07 Thread Elmar Hinz
On Tue, May 7, 2013 at 9:20 PM, Pavel Sanda sa...@lyx.org wrote: Elmar Hinz wrote: If somebody can give improvements to the plan, it's welcome. I guess people will let you do almost anything what you like in test/* but they will become much more picky when it comes to changes in src

Re: Unit testing: The Small Plan

2013-05-07 Thread Elmar Hinz
how everything currently depends on everything. We couldn't even take a little piece out, to use it as a library for something completly different. Regards \Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m personal

Re: Unit testing: The Small Plan

2013-05-07 Thread Elmar Hinz
that the class uses the stream object like expacted. Regards \Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m personal contact: e.l.m.a.r.dot.h.i.n...@.g.m.a.i.l.dot.c.o.m

Unit testing: The Small Plan

2013-05-07 Thread Elmar Hinz
only during testing. That is not really kosher, but at least a simple way to get started directly. It is done by use of a simple preprocessor directive: #public_on_testing Once a wall of tests is created to ensure the behaviour of the given API, more skilled approaches can be introduced. \Elma

Re: Unit testing: The Small Plan

2013-05-07 Thread Elmar Hinz
On Tue, May 7, 2013 at 9:20 PM, Pavel Sanda <sa...@lyx.org> wrote: > Elmar Hinz wrote: > > If somebody can give improvements to the plan, it's welcome. > > I guess people will let you do almost anything what you like in test/* > but they will become much more picky when it

Re: Unit testing: The Small Plan

2013-05-07 Thread Elmar Hinz
trength. They are a perfect teacher. Here we find out how everything currently depends on everything. We couldn't even take a little piece out, to use it as a library for something completly different. Regards \Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community co

Re: Unit testing: The Small Plan

2013-05-07 Thread Elmar Hinz
a MockStream to prove that the class uses the stream object like expacted. Regards \Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m personal contact: e.l.m.a.r.dot.h.i.n...@.g.m.a.i.l.dot.c.o.m

Best practive for dependency incjection

2013-05-06 Thread Elmar Hinz
. Do you have a policy how to deal with this for Lyx in special and is there a good tutorial how to handle that with C++ in general? THX \Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m personal contact

Re: Best practive for dependency incjection

2013-05-06 Thread Elmar Hinz
from the sources it makes sense to put the tests in it's own directory tree: src/go/here/ tests/unit/go/here/ tests/behaviour/go/here/ tests/integration/go/here/ I will evaluate if it's possible to move the existing tests out of the sources as on of the next steps. Regards \Elmar -- Elmar Hinz

Re: Best practive for dependency incjection

2013-05-06 Thread Elmar Hinz
On Mon, May 6, 2013 at 11:27 AM, Pavel Sanda sa...@lyx.org wrote: Elmar Hinz wrote: The important point is, that testing leads to restructure the source step by step in the spirit of more independency of each class. That restructure is probably what I called plans if I understand your

Best practive for dependency incjection

2013-05-06 Thread Elmar Hinz
. Do you have a policy how to deal with this for Lyx in special and is there a good tutorial how to handle that with C++ in general? THX \Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m personal contact

Re: Best practive for dependency incjection

2013-05-06 Thread Elmar Hinz
sts from the sources it makes sense to put the tests in it's own directory tree: src/go/here/ tests/unit/go/here/ tests/behaviour/go/here/ tests/integration/go/here/ I will evaluate if it's possible to move the existing tests out of the sources as on of the next steps. Regards \Elmar -- Elmar H

Re: Best practive for dependency incjection

2013-05-06 Thread Elmar Hinz
On Mon, May 6, 2013 at 11:27 AM, Pavel Sanda <sa...@lyx.org> wrote: > Elmar Hinz wrote: > > The important point is, that testing leads to restructure the source > step by > > step in the spirit of more independency of each class. > > That "restructure&qu

Re: Give me some bug please

2013-05-03 Thread Elmar Hinz
try to do this within the next week. Still interested in this. \Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m personal contact: e.l.m.a.r.dot.h.i.n...@.g.m.a.i.l.dot.c.o.m

Re: Give me some bug please

2013-05-03 Thread Elmar Hinz
let us know that a bug > is probably not an 'easyfix'. I'll try to do this within the next > week. > > Still interested in this. \Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m personal contact: e.l.m.a.r.dot.h.i.n...@.g.m.a.i.l.dot.c.o.m

Re: SVN in the Wiki

2013-05-01 Thread Elmar Hinz
CorrectingSplitSubversionKeywordshttp://wiki.lyx.org/Tips/CorrectingSplitSubversionKeywords UseInkscapeSVGImages http://wiki.lyx.org/Tips/UseInkscapeSVGImages 55 pages found out of 804 pages searched. -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a

Re: SVN in the Wiki

2013-05-01 Thread Elmar Hinz
tp://wiki.lyx.org/Site/AllRecentChanges> InterMap <http://wiki.lyx.org/Site/InterMap> Tips <http://wiki.lyx.org/Tips/Tips> / Compiling <http://wiki.lyx.org/Tips/Compiling> CorrectingSplitSubversionKeywords<http://wiki.lyx.org/Tips/CorrectingSplitSubversionKeywords> UseInkscapeSVGImages <http://wiki.lyx.org/Tips/UseInkscapeSVGImages> 55 pages found out of 804 pages searched. -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m personal contact: e.l.m.a.r.dot.h.i.n...@.g.m.a.i.l.dot.c.o.m

Re: Git Cloning Error

2013-04-30 Thread Elmar Hinz
. Kindly help me with this issue. Yours sincerely Abhishek -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m personal contact: e.l.m.a.r.dot.h.i.n...@.g.m.a.i.l.dot.c.o.m

Re: Git Cloning Error

2013-04-30 Thread Elmar Hinz
:3128 > $ git config --global http.proxy $http_proxy > > But still the same error remains. > > Kindly help me with this issue. > > Yours sincerely > Abhishek > -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m personal contact: e.l.m.a.r.dot.h.i.n...@.g.m.a.i.l.dot.c.o.m

Re: Directory layout for unit tests

2013-04-29 Thread Elmar Hinz
/LyXAction.cpp 3898 src/frontends/qt4/GuiDocument.cpp 3965 src/Paragraph.cpp 4219 src/frontends/qt4/GuiView.cpp 4763 src/tex2lyx/text.cpp 4803 src/Buffer.cpp 6403 src/insets/InsetTabular.cpp -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3

Re: Directory layout for unit tests

2013-04-29 Thread Elmar Hinz
/LyXAction.cpp 3898 src/frontends/qt4/GuiDocument.cpp 3965 src/Paragraph.cpp 4219 src/frontends/qt4/GuiView.cpp 4763 src/tex2lyx/text.cpp 4803 src/Buffer.cpp 6403 src/insets/InsetTabular.cpp -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3

Directory layout for unit tests

2013-04-28 Thread Elmar Hinz
by cmake. I think my little test is self-explanatory. Simple clone it from github. Four lines on the shell: git clone https://github.com/t3elmar/Playground.Cpp.git cd Playground.Cpp/GettingStartedWithGTest/2.directoryLayout/ chmod +x HOWTO.sh ./HOWTO.sh Regards Elmar -- Elmar Hinz Freiherr

Directory layout for unit tests

2013-04-28 Thread Elmar Hinz
today. It is controlled by cmake. I think my little test is self-explanatory. Simple clone it from github. Four lines on the shell: git clone https://github.com/t3elmar/Playground.Cpp.git cd Playground.Cpp/GettingStartedWithGTest/2.directoryLayout/ chmod +x HOWTO.sh ./HOWTO.sh Regards Elmar -- Elmar Hinz Fr

SVN in the Wiki

2013-04-27 Thread Elmar Hinz
Hello, in the wiki i find entries related to SVN. Are they obsolete or is there still a SVN repository? Regards Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m personal contact: e.l.m.a.r.dot.h.i.n

Give me some bug please

2013-04-27 Thread Elmar Hinz
. By the way, I is there an infrastucture for unit tests? Thanks Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m personal contact: e.l.m.a.r.dot.h.i.n...@.g.m.a.i.l.dot.c.o.m

Mac OS X 10.7.5: First copying QT libs then conflicting

2013-04-27 Thread Elmar Hinz
, once in the system, once in the build? Thank you Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m personal contact: e.l.m.a.r.dot.h.i.n...@.g.m.a.i.l.dot.c.o.m

Current master breaks

2013-04-27 Thread Elmar Hinz
rgh...@lyx.org Date: Sun Apr 7 18:11:27 2013 -0400 Add a bunch of comments about the different exceptions. I am to new to this project, to tell if that is a normal behaviour. Just wanted to mention. Regards Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3

Re: Current master breaks

2013-04-27 Thread Elmar Hinz
On Sat, Apr 27, 2013 at 9:25 PM, Jean-Marc Lasgouttes lasgout...@lyx.orgwrote: Le 27/04/2013 21:15, Elmar Hinz a écrit : ERROR: /Users/elmar/lyx/src/insets/**InsetCommandParams.cpp:87:25: error: default initialization of an object of const type 'const lyx::ParamInfo' requires

Re: Give me some bug please

2013-04-27 Thread Elmar Hinz
/my/superfetures/superclassTest.cpp Now everybody can create test classes. With every bugfix a new test is added. Regards Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m personal contact: e.l.m.a.r.dot.h.i.n

SVN in the Wiki

2013-04-27 Thread Elmar Hinz
Hello, in the wiki i find entries related to SVN. Are they obsolete or is there still a SVN repository? Regards Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m personal contact: e.l.m.a.r.dot.h.i.n

Give me some bug please

2013-04-27 Thread Elmar Hinz
. By the way, I is there an infrastucture for unit tests? Thanks Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m personal contact: e.l.m.a.r.dot.h.i.n...@.g.m.a.i.l.dot.c.o.m

Mac OS X 10.7.5: First copying QT libs then conflicting

2013-04-27 Thread Elmar Hinz
, once in the system, once in the build? Thank you Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m personal contact: e.l.m.a.r.dot.h.i.n...@.g.m.a.i.l.dot.c.o.m

Current master breaks

2013-04-27 Thread Elmar Hinz
ichard Heck <rgh...@lyx.org> Date: Sun Apr 7 18:11:27 2013 -0400 Add a bunch of comments about the different exceptions. I am to new to this project, to tell if that is a normal behaviour. Just wanted to mention. Regards Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Dr

Re: Current master breaks

2013-04-27 Thread Elmar Hinz
On Sat, Apr 27, 2013 at 9:25 PM, Jean-Marc Lasgouttes <lasgout...@lyx.org>wrote: > Le 27/04/2013 21:15, Elmar Hinz a écrit : > > ERROR: >> >> /Users/elmar/lyx/src/insets/**InsetCommandParams.cpp:87:25: error: >> default >> initialization of an >>

Re: Give me some bug please

2013-04-27 Thread Elmar Hinz
project/src/my/superfeature/superclass.cpp project/tests/unit/my/superfetures/superclassTest.cpp Now everybody can create test classes. With every bugfix a new test is added. Regards Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.

Compiling LyX on Mac OS 10.7.5

2013-04-26 Thread Elmar Hinz
LDFLAGS=-arch i386 This will take some time. Any further suggestions required for a contemporary Mac? Regards Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m personal contact: e.l.m.a.r.dot.h.i.n

Re: Compiling LyX on Mac OS 10.7.5

2013-04-26 Thread Elmar Hinz
libintl.h. Sie issue is mentioned here: http://www.gnu.org/software/gnulib/manual/html_node/libintl_002eh.html It tried to fix it with brew install gettext unforutnatly without success. Any other workaround? Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community

Re: Compiling LyX on Mac OS 10.7.5

2013-04-26 Thread Elmar Hinz
/cmake/Modules/BundleUtilities.cmake:668 (message): error: fixup_bundle: not a valid bundle The second one seems to be cased by the first one. The application LyX/LyX.app/Contents/MacOS/LyX is running an looks fine. Regards Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3

Re: Compiling LyX on Mac OS 10.7.5

2013-04-26 Thread Elmar Hinz
The second one seems to be cased by the first one. OK didn't follow the instruction: make LyX2.1 (to build the binary only) or make package (to get a mac bundle) Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m

Re: Re: Compiling LyX on Mac OS 10.7.5

2013-04-26 Thread Elmar Hinz
or prefered: b.) Install the devel package for libc6 (on ubuntu libc6-dev) Elmar Kornel Hello, IMHO there is no libc6 for mac. There is a /usr/lib/libSystem.dylib - libSystem.B.dylib Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3

Re: Compiling LyX on Mac OS 10.7.5

2013-04-26 Thread Elmar Hinz
OK didn't follow the instruction: make LyX2.1 (to build the binary only) or make package (to get a mac bundle) Anyway, That doesn't bring in the missing Info.plist. Question: Why is there no Info.plist in the source? -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3

Re: Re: Re: Compiling LyX on Mac OS 10.7.5

2013-04-26 Thread Elmar Hinz
On Fri, Apr 26, 2013 at 6:29 PM, Kornel Benko kor...@lyx.org wrote: ** Am Freitag, 26. April 2013 um 18:23:56, schrieb Elmar Hinz t3el...@googlemail.com Hello, IMHO there is no libc6 for mac. There is a /usr/lib/libSystem.dylib - libSystem.B.dylib Elmar

Compiling LyX on Mac OS 10.7.5

2013-04-26 Thread Elmar Hinz
ot; export LDFLAGS="-arch i386" This will take some time. Any further suggestions required for a contemporary Mac? Regards Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m personal contact:

Re: Compiling LyX on Mac OS 10.7.5

2013-04-26 Thread Elmar Hinz
ELEASE=OFF -DLYX_DEBUG=ON . # <= DOT, current dir It is missing "libintl.h". Sie issue is mentioned here: http://www.gnu.org/software/gnulib/manual/html_node/libintl_002eh.html It tried to fix it with "> brew install gettext" unforutnatly without success. Any other

Re: Compiling LyX on Mac OS 10.7.5

2013-04-26 Thread Elmar Hinz
10.2/share/cmake/Modules/BundleUtilities.cmake:668 (message): error: fixup_bundle: not a valid bundle The second one seems to be cased by the first one. The application LyX/LyX.app/Contents/MacOS/LyX is running an looks fine. Regards Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 B

Re: Compiling LyX on Mac OS 10.7.5

2013-04-26 Thread Elmar Hinz
> The second one seems to be cased by the first one. > OK didn't follow the instruction: make LyX2.1 (to build the binary only) or make package (to get a mac bundle) Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot

Re: Re: Compiling LyX on Mac OS 10.7.5

2013-04-26 Thread Elmar Hinz
> or prefered: > > b.) Install the devel package for libc6 (on ubuntu libc6-dev) > > > > > Elmar > > > > > Kornel > Hello, IMHO there is no libc6 for mac. There is a /usr/lib/libSystem.dylib -> libSystem.B.dylib Elmar -- Elmar Hinz Freiherr-vom-St

Re: Compiling LyX on Mac OS 10.7.5

2013-04-26 Thread Elmar Hinz
> OK didn't follow the instruction: > make LyX2.1 (to build the binary only) > or > make package (to get a mac bundle) > Anyway, That doesn't bring in the missing Info.plist. Question: Why is there no Info.plist in the source? -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad

Re: Re: Re: Compiling LyX on Mac OS 10.7.5

2013-04-26 Thread Elmar Hinz
On Fri, Apr 26, 2013 at 6:29 PM, Kornel Benko <kor...@lyx.org> wrote: > ** > > Am Freitag, 26. April 2013 um 18:23:56, schrieb Elmar Hinz < > t3el...@googlemail.com> > > > Hello, > > > > > > IMHO there is no libc6 for mac. There is a > &

Re: Customizing Lyx

2013-04-25 Thread Elmar Hinz
to use? Regards Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m personal contact: e.l.m.a.r.dot.h.i.n...@.g.m.a.i.l.dot.c.o.m

Re: Customizing Lyx

2013-04-25 Thread Elmar Hinz
t, what is your suggestion to use? Regards Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m personal contact: e.l.m.a.r.dot.h.i.n...@.g.m.a.i.l.dot.c.o.m