* wip: add background color placeholders for tabstripitem * feat: add css for tabstripitem for bottom navigation android * chore: update example * fix: revert native default index * clean up tabcontentitem * update setTabBarItemTextTransform * textTransform inherited css property now * fix(android-bottom-navigation): fragment detach logic * chore: fix tests * fix(android-bottom-navigation): fragment lifecycle logic * fix: revert text-transform inherited css property
e2e tests execution
-
Local setup
-
install appium and all requirments related to how to use
nativescript-dev-appiumplugin -
download images:
npm run load-images Emulator-Api23-Defaultor load multiple folders:
npm run load-images Emulator-Api23-Default Emulator-Google-Api28This command will download https://github.com/NativeScript/functional-tests-images/tree/master/uitestsapp and sparse all passed directories [emulator-name|simulator-name] [emulator-name|simulator-name] [emulator-name|simulator-name]
-
name your device so that it matches folder name, respectively api level and density of emulators.
You can also use scripts:
npm run update-emulatorsto update your emulator density.If you need to download system image and create emulator use:
npm run update-emulators -u
-
-
Test execution
-
Run test compilation in separate terminal and don't kill it.
npm run test-watch -
It is highly recommended during the development to use
npm run test [android|ios]along withtns run [android|ios]. This command will use already installed app on the device. For example: Open terminal1 and run:tns run androidand open new terminal2 and run:npm run test android
-
-
Debug test.
-
Run:
npm run test-debug [android|ios]in separate console and don't kill it. This command will start appium server and driver and use the installed app on the device but it will not execute tests. -
Go to vs code debugging and use a config like:
{ "type": "node", "request": "launch", "name": "Debug Tests", "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", "args": [ "-u", "tdd", "--colors", "--opts", "../config/mocha.opts", "--attachToDebug", ], "internalConsoleOptions": "openOnSessionStart" } -
mocha options
mocha opt file is plased in "../config/mocha.opts".
--timeout 999999
--recursive e2e
--reporter mochawesome
--reporter-options quiet=true,html=true,inline=true,autoOpen=true
--exit
- grep particular suites: "--grep=tabs-tab(s-\w+)-suite"