Closed ascariandrea closed 1 year ago
We now have a lot of fixtures for testing the parser that can be used also for testing guardoni.
By creating a .mjs script we can define a program that:
.mjs
platform
nature
count
platforms/${platform}trex/backend/__tests__/fixtures/htmls/${nature}
Running the script would be then something like ./cli-test-fixtures.mjs [yt | tk] [home | video | search | native | foryou | profile] ?[$number]
./cli-test-fixtures.mjs [yt | tk] [home | video | search | native | foryou | profile] ?[$number]
In this way we can easily test our infrastructure and automate data collection for development.
We now have a lot of fixtures for testing the parser that can be used also for testing guardoni.
By creating a
.mjs
script we can define a program that:platform
andnature
parameterscount
to limit the fixtures loaded for the experimentplatforms/${platform}trex/backend/__tests__/fixtures/htmls/${nature}
(and take only the firstcount
if given)Running the script would be then something like
./cli-test-fixtures.mjs [yt | tk] [home | video | search | native | foryou | profile] ?[$number]
In this way we can easily test our infrastructure and automate data collection for development.