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
We don't have a clear way to execute e2e testing. So basically, we create a new repository and link the dependency through npm link, then we could execute nsci run and make manual assertions.
Goal
Have a suite of abstracts to execute e2e tests.
Requirements
have a dedicated npm script to run them: npm run test:e2e
implement tests for basics scenarios
add a section in the CONTRIBUTING.md to help newcomers
The text was updated successfully, but these errors were encountered:
I do agree that we should enforce the testing library but IMHO the most lacking part about testing is the frontend side. It's true that it would be great to start implementing e2e testing to also cover reporters' outputs and checking for a specific sets of packages (with various types of configuration) that everything is ok (including the integration with @nodesecure/scanner), but the real databases might change and the tests might would become flaky and inconsistent (as already seen in @nodesecure/vulnera for instance). This already had some minor consequences for our only reporter (at the moment) which is the console#8 but this was only a "reporting" bug as the whole logic behind is mostly covered up.
About that UI testing, the main concern for me is probably the tools for testing any type of output provided by the @nodesecure/ci lib. For now, only a console reporter has been developed and then we could imagine some HTML or any other type of reporter requiring different types of testing tools.
It could be interesting to first list and discuss about tools that could help us on that subject especially on the console reporter so that we could perform high level testing on the UI side in the same spirit as React Testing Library.
For the scenario parts, it would be only a matter of providing various sets of interpreted payloads and asserting that the reporting output is correct.
Context
We don't have a clear way to execute e2e testing. So basically, we create a new repository and link the dependency through
npm link
, then we could executensci run
and make manual assertions.Goal
Have a suite of abstracts to execute e2e tests.
Requirements
npm run test:e2e
CONTRIBUTING.md
to help newcomersThe text was updated successfully, but these errors were encountered: