prithviulm / qudi-core

A framework for modular measurement applications.
https://qudi-core-testing.readthedocs.io/en/latest/
GNU General Public License v3.0
0 stars 2 forks source link

Add unit tests [New Feature] #10

Closed prithviulm closed 2 weeks ago

prithviulm commented 6 months ago

Feature Description

We need to add unit tests to test qudi's functionality (as part of CI/ CD at least) to help ensure that commits don't break existing functionality.

Related Problem

No response

Considered Alternatives

We do some kind of internal testing right now by asking people to test the code on their setups but this isn't ideal for obvious reasons.

Additional Context

No response

Contact Details

No response

prithviulm commented 6 months ago

Started working on this in 0c6fe75015ba6c465913ff8acce270a8e97cf52e. Need to discuss what tests we want to have. There should be some unit tests for the logic stuff which is probably easiest to do and is what I started with. Tests for the GUI and hardware files is probably going to be a lot trickier but maybe those are less critical, idk.

I feel like the unit tests should follow the modular nature of qudi in general. That seems natural but also maybe tedious to implement.

prithviulm commented 2 weeks ago

HiWi is working on this.