You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
As pointed in #3766 some output processes like JsonOutputProcess doesn't implement IsOutputStep neither PrintOutput methods and it prints in the ExecuteFinalizeSolutionStep.
This process and FromJsonCheckResultProcess are very useful for testing. But due to this design JsonOutputProcess can't generate the reference files to test a process which execute important tasks in the ExecuteBeforeOutputStep method.
The text was updated successfully, but these errors were encountered:
@miguelmaso I don't follow, the JsonOutputProcess itself doesn't do anything except writing a reference solution, which doesn't matter when to write it as long as it happens last
can you show your configuration to understand better the problem?
In the AnalysisStage the OutputSolutionStep comes after FinalizeSolutionStep but it isn't an issue.
The main problem is that in a test there aren't output_processes (JsonOutputProcess and FromJsonCheckResultProcess should be output processes). If there aren't output processes, the ExecuteBeforeOutputStep won't be never called and hence it can't be tested.
In #7540 I did a workaround with the ProjectParameters to overcome this issue:
I call a base output_process to enforce the output step
The end_time is two times the time_step: in the first step, the ExecuteBeforeOutputStep to be tested is executed. In the second step, the FromJsonCheckResultProcess is executed and there is an extra call of ExecuteBeforeOutputStep
Description
As pointed in #3766 some output processes like
JsonOutputProcess
doesn't implementIsOutputStep
neitherPrintOutput
methods and it prints in theExecuteFinalizeSolutionStep
.This process and
FromJsonCheckResultProcess
are very useful for testing. But due to this designJsonOutputProcess
can't generate the reference files to test a process which execute important tasks in theExecuteBeforeOutputStep
method.The text was updated successfully, but these errors were encountered: