Automated tests for types #103

Closed
opened 2021-11-20 13:23:57 +00:00 by ungleich-gitea · 1 comment

Created by: markasoftware

It would be super nice to have a test system in place for types. I am envisioning something where types can have their tests, also written in shell, in the same directory as the type itself. The test is able to specify the following:

  • Object ID & parameters
  • Output of global and object-specific explorers

Then, the script can assert things about:

  • The objects the manifest tried to instantiate and the parameters passed to them
  • The output of gencode-{local,remote}

It would also be nice to have some way of testing the explorers rather than just the manifest & gencode scripts. However, the explorers rely so much on system commands that I'm not sure that they could be made reproducible.

*Created by: markasoftware* It would be super nice to have a test system in place for types. I am envisioning something where types can have their tests, also written in shell, in the same directory as the type itself. The test is able to specify the following: * Object ID & parameters * Output of global and object-specific explorers Then, the script can assert things about: * The objects the manifest tried to instantiate and the parameters passed to them * The output of gencode-{local,remote} It would also be nice to have some way of testing the explorers rather than just the manifest & gencode scripts. However, the explorers rely so much on system commands that I'm not sure that they could be made reproducible.
ungleich-gitea added the
Stale
label 2021-11-20 13:23:57 +00:00
Author
Owner

closed

closed
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ungleich-public/cdist#103
No description provided.