Dasharo / dasharo-issues

The Dasharo issue tracker
https://dasharo.com/
25 stars 0 forks source link

DTS unit testing part 2 - Unit testing framework #719

Open miczyg1 opened 8 months ago

miczyg1 commented 8 months ago

The problem you're addressing (if any)

The DTS unit test are executed on host as bare scripts. Going through each scenario is manual.

Describe the solution you'd like

There should be some framework that can execute these test better or even prepare the test cases in an easier way. E.g. test scenarios automatically and parse output for expected strings. We have to do a proper research of the frameworks, select one and integrate it.

Where is the value to a user, and who might that user be?

No response

Describe alternatives you've considered

No response

Additional context

https://github.com/Dasharo/meta-dts/pull/95#issuecomment-1916610395

macpijan commented 7 months ago

At some point I proposed this framework: https://github.com/bats-core/bats-core

pietrushnic commented 7 months ago

@macpijan, here's my proposal for the priority of languages proposed in 3mdeb: Go > Python > Bash for user-space-level development and Rust > C for kernel and firmware-level development. These are still prototype ideas, but as I said, we have to prepare the organization for the "new future".