Skip to content

Driver test. #475

Open
Open

Description

We need some solution (that should have been baked into the base class to begin with) to make sure the drivers are actually valid python.

Activity

  1. jenshnielsen commented on Feb 3, 2017

    @jenshnielsen
    Collaborator

    I.e #474
    and
    in #459 the default values could not validate

  2. giulioungaretti commented on Feb 3, 2017

    @giulioungaretti
    ContributorAuthor

    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.

  3. jenshnielsen commented on Feb 3, 2017

    @jenshnielsen
    Collaborator

    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

  4. changed the title [-]Dirver test.[/-] [+]Driver test.[/+] on Aug 11, 2017
  5. sohailc commented on Aug 16, 2017

    @sohailc
    Member

    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.

  6. WilliamHPNielsen commented on Dec 18, 2017

    @WilliamHPNielsen
    Contributor

    I guess this was dealt with by #859. At least for VISA instruments there is now a standard way of doing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions