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
Jens Hedegaard Nielsen (@jenshnielsen) I am thinking about having a mock, that simply replaces base, and tests if all the instruments at least can be instantiated.
Yes agreed, have been doing that manually when testing drivers for instruments that I don't have easy access to. Above is just some examples of why we need it
Making a mock instrument server which receives messages and sends reply's on specified ports on localhost is I think the best option for making being able to run and debug instrument drivers, at least for IP instruments. In this way we can leave the driver unmodified, that is, the driver being tested is exactly the same as the driver that will actually be used. I have made mock instrument server in my PR (#700), but maybe it is a good idea to open a seperate PR specifically for this problem.
Activity
jenshnielsen commentedon Feb 3, 2017
I.e #474
and
in #459 the default values could not validate
giulioungaretti commentedon Feb 3, 2017
Jens Hedegaard Nielsen (@jenshnielsen) I am thinking about having a mock, that simply replaces base, and tests if all the instruments at least can be instantiated.
jenshnielsen commentedon Feb 3, 2017
Yes agreed, have been doing that manually when testing drivers for instruments that I don't have easy access to. Above is just some examples of why we need it
[-]Dirver test.[/-][+]Driver test.[/+]sohailc commentedon Aug 16, 2017
Making a mock instrument server which receives messages and sends reply's on specified ports on localhost is I think the best option for making being able to run and debug instrument drivers, at least for IP instruments. In this way we can leave the driver unmodified, that is, the driver being tested is exactly the same as the driver that will actually be used. I have made mock instrument server in my PR (#700), but maybe it is a good idea to open a seperate PR specifically for this problem.
WilliamHPNielsen commentedon Dec 18, 2017
I guess this was dealt with by #859. At least for VISA instruments there is now a standard way of doing this.