Open aadcg opened 2 years ago
It's a different problem but yes, the test is not functional enough then! Thanks for catching this, André!
Should we have a meta-test that runs the tests twice?
Should we have a meta-test that runs the tests twice?
I don't think so honestly. We'd be leaning towards a (potentially) endless chain of meta testing that goes by: program -> test(program) -> test(test(program)) -> ...
We just need to be extremely careful so that our test suite is as bug-free as we can. It's ok it's not perfect yet :)
@aadcg Is this fixed? Wrong issue, sorry :p
This test is still an abomination. I can't think of any good reason that would justify a test being stateful.
In d32b369b18c753b1a618b2e611e62f0342f90857 a change was introduced to deal with that fact that running these tests locally always failed. However, running the test suite twice locally results in the same problem.
Steps to reproduce:
(asdf:load-system "nyxt/tests")
(in-package :nyxt/tests)
(dotimes (_ 2) (with-summary () (run-test 'global-history)))