Граф коммитов

11 Коммитов

Автор SHA1 Сообщение Дата
Shahak Yosef e7e8ed9d20 Merged PR 229897: Remove karma-coverage dependency
Remove karma-coverage dependency because it causes build pipeline to fail and doesn't add enough value.

![ss.png](https://powerbi.visualstudio.com/4c7b5adb-c2d0-4f18-b23c-edc4ac30f4e1/_apis/git/repositories/1dd63332-e003-46a3-ac6f-70213a1bcc2e/pullRequests/229897/attachments/ss.png)
2022-01-12 14:35:03 +00:00
Shahak Yosef 53608cf13f Merged PR 221263: Fix test results
This PR does a few things:
1. Fix broken get theme test
2. Remove noisy unnecessary logs
3. Remove unused headless chrome browser when [kjhtml reporter](https://www.npmjs.com/package/karma-jasmine-html-reporter) is used (using a headless browser for UI debugging doesn't make sense)
4. Fix test failures not leading to Azure DevOps build pipeline failure (align with [official documentation](http://karma-runner.github.io/6.3/dev/public-api.html))
5. Add JUnit test results reported so that Azure DevOps can report test failures nicely (base don front end implementation)

You can see JUnit yourselves by going to the failed build and clicking on the tests tab like you do in the front end or backend but here is a picture

![image.png](https://powerbi.visualstudio.com/4c7b5adb-c2d0-4f18-b23c-edc4ac30f4e1/_apis/git/repositories/1dd63332-e003-46a3-ac6f-70213a1bcc2e/pullRequests/221263/attachments/image.png)
2021-12-02 09:59:01 +00:00
Shahak Yosef b57d332ad0 Merged PR 217002: Refactor tests
Refactor tests
2021-11-18 07:41:44 +00:00
Shahak Yosef 015419bf73 Merged PR 145115: Improve kjhtml
Fixes two problems:
- Auto watch doesn't re-run tests on file changes
- Closing tests window doesn't close the test process in the command line
2021-02-07 08:48:37 +00:00
Shahak Yosef 7aafa6275e Merged PR 139686: Add kjhtml
Add kjhtml to the Javascript SDK to make debugging tests easier.
## Know issues:
1) An old version (0.2.2) is used because newer versions are incompatible with our jasmine karma versions, trying to update them causes issues both in the tests themselves and in test coverage reporting.
2) Closing the test page doesn't close the running command in the terminal, need a couple of `cntrl + c`, this is the same in other repositories.

For reference check [karma.baseconf.js](https://powerbi.visualstudio.com/PowerBIClients/_git/PowerBIClients?path=%2Fsrc%2FModern%2FIntegrationTesting%2FDesktopIntegrationTestHost%2Fkarma.baseconf.js&_a=contents&version=GBmaster) and [karma.conf.js](https://powerbi.visualstudio.com/PowerBIClients/_git/PowerBIClients?path=%2Fsrc%2FClients%2FPowerBIPlayground%2FAngular%2Fkarma.conf.js&_a=contents&version=GBmaster)

![khjtml.PNG](https://powerbi.visualstudio.com/4c7b5adb-c2d0-4f18-b23c-edc4ac30f4e1/_apis/git/repositories/1dd63332-e003-46a3-ac6f-70213a1bcc2e/pullRequests/139686/attachments/khjtml.PNG)
2021-01-18 07:00:14 +00:00
Matt Mazzola 1f43593cdf Add ability to test using Firefox browser. 2016-08-23 14:38:03 -07:00
Matt Mazzola 4d63a39f6d Auto-format all files to use consistent tab size of 2. 2016-08-22 15:09:15 -07:00
Matt Mazzola d8d7745d66 Remove paths.js and references 2016-06-24 10:30:04 -07:00
Matt Mazzola 1b41238707 Consolidate all tests so they can be run with single command: gulp test --chrome 2016-06-15 17:46:38 -07:00
Matt Mazzola d6ecab0d44 Merge pull request #10 from Microsoft/dev 2016-04-20 11:19:43 -07:00
Wallace Breza 83ccc56ea3 Added unit tests for javascript components 2016-02-03 16:18:16 -08:00