Closed p-offtermatt closed 3 days ago
I guess because they themselves are not imported in CCVDefaultStateMachine, because CCV is not exported by CCVStatemachineLogic.
Yes, that's right, you need the export exactly as you said.
The export should work, but it's breaking flattening for some reason. That's not even related to the tests - if I comment out all of the tests, it still crashes.
Seems like an export bug to me.
Thanks for looking into it. I worked around this for now by splitting my modules differently, so it's not blocking me.
My spec is this: https://github.com/cosmos/interchain-security/blob/e09968d94a4e5a84bf144e5f0737e1f529494772/tests/difference/core/quint_model/ccv.qnt#L212
When I run
quint test ccv.qnt --main CCVDefaultStateMachine
I would expect the tests in the CCV module to be run. They are not; I guess because they themselves are not imported in CCVDefaultStateMachine, because CCV is not exported by CCVStatemachineLogic.Adding
export CCV.*
to CCVStatemachineLogic (e.g. after import CCV.* does not work), when running quint test I get this:If I add
export CCV
without .*, I get this error:Is there a way to do what I am trying to do, i.e. run the tests in CCV, but with the instantiation I have done through CCVStatemachineLogic from CCVDefaultStateMachine? I am not sure if any of the behaviour here is a bug. At least from a users perspective, the error messages seem weird, but I can't quite tell.