testomatio / check-tests

GitHub action with static analysis for JavaScript tests.
https://testomat.io
20 stars 8 forks source link

changelog.md updates #126

Closed mykhailiukVitalii closed 1 year ago

mykhailiukVitalii commented 1 year ago

Small changelog.md updates based on the latest fixes

github-actions[bot] commented 1 year ago

🌀 Tests overview by Testomatio

Found 117 mocha tests in 16 files No new tests added or removed

📑 List all tests --- 📝 [tests/analyzer_test.js](https://github.com/testomatio/check-tests/tree/b849757e28781aaaa2379fbb7c5b4d910ea7242a/tests/analyzer_test.js) * 📎 **analyzer** * ✔️ `can import analyzer from main index` * ✔️ `should parse all mocha files` * ✔️ `should parse all typescript files` * ✔️ `should exclude dir in file name if dir specified` * ✔️ `should include full dir in file name` * ✔️ `should avoid node_modules` * ✔️ `should read ` char` * ✔️ `should not load dirs as files` * 📎 **env variable params** * ✔️ `should prepend a dir from env variable` 📝 [tests/codeceptjs_test.js](https://github.com/testomatio/check-tests/tree/b849757e28781aaaa2379fbb7c5b4d910ea7242a/tests/codeceptjs_test.js) * 📎 **codeceptjs parser** * 📎 **create todo tests** * ✔️ `should parse codecept file` * ✔️ `should include code` * 📎 **Parse CodeceptJS tags** * ✔️ `should include tags` * 📎 **Parse CodeceptJS tags & datatable** * ✔️ `should include data and tags` * 📎 **Parse CodeceptJS hooks code - default opts** * ✔️ `should include Before hook code` * ✔️ `should include BeforeSuite hook code` * ✔️ `should include AfterSuite hook code` * 📎 **[opts.noHooks = true] Parse CodeceptJS hooks code** * ✔️ `should exclude Before hook code` * ✔️ `should exclude BeforeSuite hook code` * ✔️ `should exclude AfterSuite hook code` * 📎 **Parse CodeceptJS test with --line-numbers option** * ✔️ `[lineNumbers=true opts] each section should include line-number as part of code section` * ✔️ `[no SET the lineNumbers opts] should exclude line-number` * ✔️ `[noHooks=true + lineNumbers=true opts] line-number as part of code section` 📝 [tests/comment_test.js](https://github.com/testomatio/check-tests/tree/b849757e28781aaaa2379fbb7c5b4d910ea7242a/tests/comment_test.js) * 📎 **Comment** * ✔️ `should refer to proper skipped line in comment` 📝 [tests/decorator_test.js](https://github.com/testomatio/check-tests/tree/b849757e28781aaaa2379fbb7c5b4d910ea7242a/tests/decorator_test.js) * 📎 **Decorator** * ✔️ `should print markdown` * ✔️ `should print markdown2` 📝 [tests/jasmine_test.js](https://github.com/testomatio/check-tests/tree/b849757e28781aaaa2379fbb7c5b4d910ea7242a/tests/jasmine_test.js) * 📎 **jasmine parser** * 📎 **jasmine tests** * ✔️ `should parse jasmine file` * ✔️ `should include code` 📝 [tests/jest_test.js](https://github.com/testomatio/check-tests/tree/b849757e28781aaaa2379fbb7c5b4d910ea7242a/tests/jest_test.js) * 📎 **jest parser** * 📎 **jest tests** * ✔️ `should parse jest file` * ✔️ `should include code` * 📎 **exclusive tests** * ✔️ `should throw an error if a file contains .only` * 📎 **hooks tests - default opts** * ✔️ `should include beforeAll hook code` * ✔️ `should include beforeEach hook code` * ✔️ `should include afterAll hook code` * 📎 **[opts.noHooks = true] hooks tests** * ✔️ `should exclude beforeAll hook code` * ✔️ `should exclude beforeEach hook code` * ✔️ `should exclude after hook code` * 📎 **test with --line-numbers option** * ✔️ `[lineNumbers=true opts] each section should include line-number as part of code section` * ✔️ `[no SET the lineNumbers opts] should exclude line-number` * ✔️ `[noHooks=true + lineNumbers=true opts] line-number as part of code section` 📝 [tests/mocha_test.js](https://github.com/testomatio/check-tests/tree/b849757e28781aaaa2379fbb7c5b4d910ea7242a/tests/mocha_test.js) * 📎 **mocha parser** * 📎 **mocha tests** * ✔️ `should parse mocha file` * 📎 **cypress tests** * ✔️ `should parse cypress file` * ✔️ `should include code` * 📎 **graphql tests** * ✔️ `should parse codeceptjs internal test` * 📎 **Cypress: hooks tests** * ✔️ `should include before hook code by default` * ✔️ `should include beforeEach hook code by default` * ✔️ `should include after hook code by default` * 📎 **[opts.noHooks = true] Cypress: hooks code** * ✔️ `should exclude before hook code` * ✔️ `should exclude beforeEach hook code` * ✔️ `should exclude after hook code` * 📎 **Cypress: test with --line-numbers option** * ✔️ `[lineNumbers=true opts] each section should include line-number as part of code section` * ✔️ `[no SET the lineNumbers opts] should exclude line-number` * ✔️ `[noHooks=true + lineNumbers=true opts] line-number as part of code section` 📝 [tests/newman_test.js](https://github.com/testomatio/check-tests/tree/b849757e28781aaaa2379fbb7c5b4d910ea7242a/tests/newman_test.js) * 📎 **newman parser** * ✔️ `should parse newman collection` * ✔️ `should properly get test name` * ✔️ `should properly get suites for test inside nested folder` * ✔️ `should properly get suite for test within collection (not in any folder)` 📝 [tests/playwright_test.js](https://github.com/testomatio/check-tests/tree/b849757e28781aaaa2379fbb7c5b4d910ea7242a/tests/playwright_test.js) * 📎 **playwright parser** * ✔️ `should parse basic playwright-js tests` * ✔️ `should parse basic playwright-ts tests` * ✔️ `should parse multiple playwright-js tests` * ✔️ `should parse multiple playwright-ts tests` * ✔️ `should update playwright suite if no suite set` * ✔️ `should parse playwright-js tests with annotation` * ✔️ `should parse playwright-js tests with annotation including fixme` * ✔️ `should parse playwright-ts tests with annotations` * ✔️ `should parse playwright-js tests with skip() annotation for the description and test sections` * ✔️ `should parse playwright-js tests with fixme() annotation for the description and test sections` * 📎 **Parse Playwright hooks code - default opts** * ✔️ `should include beforeAll hook code` * ✔️ `should include beforeEach hook code` * ✔️ `should include afterAll hook code` * 📎 **[opts.noHooks = true] Parse Playwright hooks code** * ✔️ `should exclude beforeAll hook code` * ✔️ `should exclude beforeEach hook code` * ✔️ `should exclude afterAll hook code` * 📎 **Default playwright file parsing ** * ✔️ `should parse basic playwright-ts DEMO tests ("todo" name as part of inner function args)` * ✔️ `should return suite name if used test.describe without parallel mode` * ✔️ `should return suite name if used test.describe.parallel mode` * 📎 **test with --line-numbers option** * ✔️ `[lineNumbers=true opts] each section should include line-number as part of code section` * ✔️ `[no SET the lineNumbers opts] should exclude line-number` * ✔️ `[noHooks=true + lineNumbers=true opts] line-number as part of code section` 📝 [tests/qunit_test.js](https://github.com/testomatio/check-tests/tree/b849757e28781aaaa2379fbb7c5b4d910ea7242a/tests/qunit_test.js) * 📎 **qunit parser** * 📎 **qunit tests** * ✔️ `should parse qunit file` 📝 [tests/testcafe_test.js](https://github.com/testomatio/check-tests/tree/b849757e28781aaaa2379fbb7c5b4d910ea7242a/tests/testcafe_test.js) * 📎 **testcafe parser** * 📎 **Testcafe tests** * ✔️ `should parse testcafe file` * ✔️ `should include testcafe code` 📝 [tests/update_fs_test.js](https://github.com/testomatio/check-tests/tree/b849757e28781aaaa2379fbb7c5b4d910ea7242a/tests/update_fs_test.js) * 📎 **UpdateIds FS** * ✔️ `should add suite and test ids` * ✔️ `should clean suite and test ids safely` * ✔️ `should clean suite and test ids unsafely` 📝 [tests/updateIds_codeceptjs_test.js](https://github.com/testomatio/check-tests/tree/b849757e28781aaaa2379fbb7c5b4d910ea7242a/tests/updateIds_codeceptjs_test.js) * 📎 **update ids tests(codeseptJS adapter)** * 📎 **[codeseptJS examples] includes Feature + Scenario** * ✔️ `[js file]: file includes Feature + one Scenario` * ✔️ `[js file]: test file does not include Feature, only Scenario` * ✔️ `[js file]: test file does not include Scenario, only Feature` * 📎 **[codeseptJS examples] clean-ids** * ✔️ `can remove ids from the file with Scenario only` * ✔️ `can remove ids form the Feature & Scenario` 📝 [tests/updateIds_playwright_test.js](https://github.com/testomatio/check-tests/tree/b849757e28781aaaa2379fbb7c5b4d910ea7242a/tests/updateIds_playwright_test.js) * 📎 **update ids tests(playwright adapter)** * 📎 **[Playwright examples] includes/no includes main suite** * ✔️ `[ts file]: test file includes suite with tests` * ✔️ `[ts file]: test file does not include suite name, only tests` * ✔️ `[ts file]: test file test.describe.parallel mode should returns updated title.` * 📎 **[Playwright examples] lines processing** * ✔️ `[ts file]: the same import name as suite name` * ✔️ `[ts file]: test file without imports should update only suite & test name` * ✔️ `[js file]: the same require name as suite name` * ✔️ `[js file]: suite name as a new line` * 📎 **[Playwright examples] clean-ids for the --typescript mode** * ✔️ `can remove ids from the file with suite` * ✔️ `can remove ids if no suites in the file` 📝 [tests/updateIds_test.js](https://github.com/testomatio/check-tests/tree/b849757e28781aaaa2379fbb7c5b4d910ea7242a/tests/updateIds_test.js) * 📎 **update ids** * 📎 **update-ids** * ✔️ `should update id by title` * ✔️ `should update id with tags by title` * ✔️ `updates ids from server` * ✔️ `ignore duplicates for ids from server` * ✔️ `should not update other strings in file` * ✔️ `allows multi-line titles` * ✔️ `respects string literals` * ✔️ `respects variables in string literals` * ✔️ `respects variables in string literals and JSON report mode` * ✔️ `respects variables in string literals in double param and JSON report mode` * ✔️ `works ok with empty files` * ✔️ `supports typescript` * ✔️ `supports typescript with types` * ✔️ `should not reformat the Array code with --typescript option` * 📎 **clean-ids** * ✔️ `cleans up ids from strings` * ✔️ `cleans up ids from string literals` * ✔️ `unsafely cleans up ids from string literals` * ✔️ `can remove ids from typescript` 📝 [tests/utils_test.js](https://github.com/testomatio/check-tests/tree/b849757e28781aaaa2379fbb7c5b4d910ea7242a/tests/utils_test.js) * 📎 **util functions** * ✔️ `#replaceAtPoint`