Ikshi / assignment

0 stars 0 forks source link

Target count #6

Open smilinazzo opened 1 month ago

smilinazzo commented 1 month ago

https://github.com/Ikshi/assignment/blob/cdde9f40d9217ba45bb7440288e2cf3fa4e71ae3/test/test.js#L8

Say we have a different number of targets. How would you write these tests if we had 3 targets? 10? 50?

Ikshi commented 1 month ago

@smilinazzo So if we have a different number of targets, I would make a more dynamic approach where I would store all the logs files in a directory and then iterate through each file and their contents to carry out my tests. For example if I want to check the validity of the data, I would iterate through each file compare each file content with the original input file.