'Native builds not working using npm run ionic-e2e:build:android

I have an Ionic Angular mobile app and i want to execute native tests using the npm run ionic-e2e:build:android and npm run ionic-e2e:run:android commands but im getting the following error:

npm ERR! Missing script: "ionic-e2e:run:android"
npm ERR! 
npm ERR! To see a list of scripts, run:
npm ERR!   npm run

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/andreas.a/.npm/_logs/2022-01-28T08_16_55_962Z-debug.log
andreas.p@MacBook-Pro-2 ThemariDev % npm run ionic-e2e:build:android

npm ERR! Missing script: "ionic-e2e:build:android"
npm ERR! 
npm ERR! To see a list of scripts, run:
npm ERR!   npm run

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/andreas.a/.npm/_logs/2022-01-28T08_18_06_383Z-debug.log

Do i need to install something else in order to make it work?

I am following this guide: https://ionicframework.com/blog/introducing-the-ionic-end-to-end-testing-reference-example/

Thanks in Advance



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source