Generation Date and Time Thu Aug 12 2021 |
App Generator @sap/generator-fiori |
App Generator Version 1.3.0 |
Generation Platform Visual Studio Code |
Service Type None |
Application Title UI5 App including Karma Testrunner |
Author Michael Christa |
This repository contains a simple UI5 application with few trivial QUnit tests defined. Further, there is a Karma config included which executes the UI5 tests and is also executable from a CI-Pipeline like Azure-Pipelines. The configuration is tested with Azure-Pipelines and the repository includes also the Azure-Pipeline configuration.
In order to use Karma, you need to install required npm modules. Run the install from the root folder of the repository.
npm install
- This app has been generated using the SAP Fiori tools - App Generator, as part of the SAP Fiori tools suite. In order to launch the generated app, simply run the following from the generated app root folder:
npm start
npm test
or
karma start
- task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: '**/TESTS-*.xml'
displayName: 'Display Unit Test result'
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: 'Cobertura'
summaryFileLocation: '$(Build.SourcesDirectory)/coverage/**/cobertura.xml'
- Active NodeJS LTS (Long Term Support) version and associated supported NPM version. (See https://nodejs.org)