discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

unit testing based on # of volumes

NH
nop head
Tue, May 14, 2019 8:01 PM

I am not sure how useful it is for unit testing as it is a very crude
measure of correctness. The OpenSCAD automatic tests generate images or STL
files, etc and compare them with what is expected.

On Tue, 14 May 2019 at 20:46, AdrianSchlatter ad@tambora.ch wrote:

That clearly means it cannot be done with today’s openscad. It can be done
by
changing openscad (as you outlined) or by using third party tools (as
outlined by Carsten). If this would be an urgent problem, I’d go for
Carsten’s AngelCAD. It’s not urgent, therefore I’ll avoid that extra
dependency for now.

Am I the only one interested in that feature? Or is this a use case others
have as well? Should the suggested command line option provide additional
information to be more useful for unit testing?

Regards, Adrian

nophead wrote

The code that prints the volumes is part of the GUI so it doesn't happen
when running without a GUI. It is here:
https://github.com/openscad/openscad/blob/master/src/mainwin.cc#L2276

I don't think it would be a big job to move it to openscad.cc and call it
from mainwin.cc. Perhaps  a command line option to enable it as most
people
probably don't want the extra noise.

I am not sure how useful it is for unit testing as it is a very crude measure of correctness. The OpenSCAD automatic tests generate images or STL files, etc and compare them with what is expected. On Tue, 14 May 2019 at 20:46, AdrianSchlatter <ad@tambora.ch> wrote: > That clearly means it cannot be done with today’s openscad. It can be done > by > changing openscad (as you outlined) or by using third party tools (as > outlined by Carsten). If this would be an urgent problem, I’d go for > Carsten’s AngelCAD. It’s not urgent, therefore I’ll avoid that extra > dependency for now. > > Am I the only one interested in that feature? Or is this a use case others > have as well? Should the suggested command line option provide additional > information to be more useful for unit testing? > > Regards, Adrian > > > nophead wrote > > The code that prints the volumes is part of the GUI so it doesn't happen > > when running without a GUI. It is here: > > https://github.com/openscad/openscad/blob/master/src/mainwin.cc#L2276 > > > > I don't think it would be a big job to move it to openscad.cc and call it > > from mainwin.cc. Perhaps a command line option to enable it as most > > people > > probably don't want the extra noise. > > > > > > -- > Sent from: http://forum.openscad.org/ > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >