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
Gonfique will implement a unit test according to criteria:
The test will be placed in a separate file its name suffixed with _test.go.
The unit test will call the generated func ReadConfig(path string) and make sure it has no problem completing its execution without panics/errors can be instantiated from yaml.Decoder
The input file's path that will be used as argument to ReadConfig function will be the input file's path for model generation.
ufukty
changed the title
Implementing a basic unit test for config file to make CI pipeline validate the recency of models at each push
Implementing a unit test to make CI pipeline validate the recency of model at each push
Jul 4, 2024
Expected behavior
Gonfique will implement a unit test according to criteria:
_test.go
.func ReadConfig(path string)
and make sure it has no problem completing its execution without panics/errors can be instantiated fromyaml.Decoder
ReadConfig
function will be the input file's path for model generation.Example
Advanced implementation
Couple assertions can be placed in the unit test's body. Pairs can be sourced from input file that is provided in model generation.
The text was updated successfully, but these errors were encountered: