On Sun, Dec 28, 2025 at 03:30:37PM +0100, Grégory Vanuxem wrote:
> Hello,
> 
> I am adding some input test files using the FriCAS testing framework
> from M. Rubey for manual testing. During the coding test and running
> test files sequentially in the interpreter, I noticed that previous
> test files seem to be re-run. To be more explicit, here are the tail
> of two interpreter sessions, one where I check only jws.input from a
> fresh FriCAS session, the second I check jws.input but, after a
> jnemo.input test.
<snip<
> Is it what is expected? It seems the previous test (jnemo.input) is
> re-run when checking jws.input. Wouldn't it be preferable to reset the
> testing framework? Something like after statistics() for example,
> reset the test framework?

Testing framework keeps current score.  Running a test adds to
the score.  So, tests are run just when you run corresponding
input file, but reported score is cumulative (that is old score
is added to the current score).  From docstring of 'statistics':

    ++ statistics() prints out a summary of the outcome of the testcases so
    ++ far. Use \spad{clear completely} to reset the statistics.

So, you are supposed to use ')clear completely' to reset the
statistics and start with zero score.  In principle we could
provide something like 'clear_statistics', but ')clear completely'
have an advantage of clearing various caches.  Note that
compiling a Spad domain has similar efect to ')clear completely',
so in normal use there is no much difference.

-- 
                              Waldek Hebisch

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/fricas-devel/aVFr8Ea1PJCj1Vwb%40fricas.org.

Reply via email to