{"id":20129311,"url":"https://github.com/aicore/libtestutils","last_synced_at":"2026-05-05T16:40:06.880Z","repository":{"id":40675557,"uuid":"505821868","full_name":"aicore/libtestutils","owner":"aicore","description":"Integration test utils for core.ai","archived":false,"fork":false,"pushed_at":"2025-02-21T21:59:34.000Z","size":541,"stargazers_count":0,"open_issues_count":11,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-21T22:30:23.419Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aicore.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-21T11:53:53.000Z","updated_at":"2024-04-25T06:26:07.000Z","dependencies_parsed_at":"2024-01-04T17:31:03.405Z","dependency_job_id":"7669da7f-7fb8-40b6-af48-3456c27d7a1c","html_url":"https://github.com/aicore/libtestutils","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"aicore/template-nodejs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aicore%2Flibtestutils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aicore%2Flibtestutils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aicore%2Flibtestutils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aicore%2Flibtestutils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aicore","download_url":"https://codeload.github.com/aicore/libtestutils/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241573057,"owners_count":19984412,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T20:33:32.257Z","updated_at":"2026-05-05T16:40:01.848Z","avatar_url":"https://github.com/aicore.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# libtest utils\n\nThis library is used as handy tool to run integration tests for core.ai services.\n\n## Code Guardian\n\n[![\u003capp\u003e build verification](https://github.com/aicore/template-nodejs/actions/workflows/build_verify.yml/badge.svg)](https://github.com/aicore/template-nodejs/actions/workflows/build_verify.yml)\n\n\u003ca href=\"https://sonarcloud.io/summary/new_code?id=aicore_template-nodejs-ts\"\u003e\n  \u003cimg src=\"https://sonarcloud.io/api/project_badges/measure?project=aicore_template-nodejs-ts\u0026metric=alert_status\" alt=\"Sonar code quality check\" /\u003e\n  \u003cimg src=\"https://sonarcloud.io/api/project_badges/measure?project=aicore_template-nodejs-ts\u0026metric=security_rating\" alt=\"Security rating\" /\u003e\n  \u003cimg src=\"https://sonarcloud.io/api/project_badges/measure?project=aicore_template-nodejs-ts\u0026metric=vulnerabilities\" alt=\"vulnerabilities\" /\u003e\n  \u003cimg src=\"https://sonarcloud.io/api/project_badges/measure?project=aicore_template-nodejs-ts\u0026metric=coverage\" alt=\"Code Coverage\" /\u003e\n  \u003cimg src=\"https://sonarcloud.io/api/project_badges/measure?project=aicore_template-nodejs-ts\u0026metric=bugs\" alt=\"Code Bugs\" /\u003e\n  \u003cimg src=\"https://sonarcloud.io/api/project_badges/measure?project=aicore_template-nodejs-ts\u0026metric=reliability_rating\" alt=\"Reliability Rating\" /\u003e\n  \u003cimg src=\"https://sonarcloud.io/api/project_badges/measure?project=aicore_template-nodejs-ts\u0026metric=sqale_rating\" alt=\"Maintainability Rating\" /\u003e\n  \u003cimg src=\"https://sonarcloud.io/api/project_badges/measure?project=aicore_template-nodejs-ts\u0026metric=ncloc\" alt=\"Lines of Code\" /\u003e\n  \u003cimg src=\"https://sonarcloud.io/api/project_badges/measure?project=aicore_template-nodejs-ts\u0026metric=sqale_index\" alt=\"Technical debt\" /\u003e\n\u003c/a\u003e\n\n# How to USE\n\n``` js\n// Add test dependency in package.json\nimport {installMysql,  uninstallMysql} from libtestutils;\ntry{\nawait installMysql();\nawait uninstallMysql();\n} catch (e){\nconsole.log(e)\n}\n```\n\n# TODOs after template use\n\n1. Update package.json with your app defaults\n2. Check Build actions on pull requests.\n3. create a home page in wiki by going to wiki link https://github.com/\u003cyour_org\u003e/\u003cyour_repo\u003e/wiki\n4. Goto github `repository` \u003e `settings`\u003e and uncheck `Allow merge commits`\n5. In sonar cloud, enable Automatic analysis from `Administration\n   Analysis Method` for the first time before a pull request is\n   raised: ![image](https://user-images.githubusercontent.com/5336369/148695840-65585d04-5e59-450b-8794-54ca3c62b9fe.png)\n6. Check codacy runs on pull requests, set codacy defaults. You may remove codacy if sonar cloud is only needed.\n7. Update the above Code Guardian badges; change all `id=aicore_template-nodejs-ts` to the sonar id of your project\n   fields. see this PR: https://github.com/aicore/libcache/pull/13\n\n# Commands available\n\n## Building\n\nSince this is a pure JS template project, build command just runs test with coverage.\n\n```shell\n\u003e npm install   // do this only once.\n\u003e npm run build\n```\n\n## Linting\n\nTo lint the files in the project, run the following command:\n\n```shell\n\u003e npm run lint\n```\n\nTo Automatically fix lint errors:\n\n```shell\n\u003e npm run lint:fix\n```\n\n## Testing\n\nTo run all tests:\n\n```shell\n\u003e npm run test\n```\n\nAdditionally, to run unit/integration tests only, use the commands:\n\n```shell\n\u003e npm run test:unit\n\u003e npm run test:integ\n```\n\n## Coverage Reports\n\nTo run all tests with coverage:\n\n```shell\n\u003e npm run cover\n \nAfter running coverage, detailed reports can be found in the coverage folder listed in the output of coverage command.\nOpen the file in browser to view detailed reports.\n\nTo run unit/integration tests only with coverage\n```shell\n\u003e npm run cover:unit\n\u003e npm run cover:integ\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faicore%2Flibtestutils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faicore%2Flibtestutils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faicore%2Flibtestutils/lists"}