{"id":17548784,"url":"https://github.com/lslezak/agama-integration-test-webpack","last_synced_at":"2025-04-12T01:17:53.247Z","repository":{"id":254965883,"uuid":"847770970","full_name":"lslezak/agama-integration-test-webpack","owner":"lslezak","description":"Experimental bundling the Agama integration tests","archived":false,"fork":false,"pushed_at":"2025-01-07T15:08:49.000Z","size":132,"stargazers_count":0,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T01:17:43.204Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lslezak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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":"2024-08-26T14:11:35.000Z","updated_at":"2024-12-18T17:04:58.000Z","dependencies_parsed_at":"2024-09-09T23:52:48.328Z","dependency_job_id":"e5269a10-67f8-4659-8096-7bef182b1bf8","html_url":"https://github.com/lslezak/agama-integration-test-webpack","commit_stats":null,"previous_names":["lslezak/agama-webpack-test"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lslezak%2Fagama-integration-test-webpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lslezak%2Fagama-integration-test-webpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lslezak%2Fagama-integration-test-webpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lslezak%2Fagama-integration-test-webpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lslezak","download_url":"https://codeload.github.com/lslezak/agama-integration-test-webpack/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248501856,"owners_count":21114684,"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-10-21T02:43:54.819Z","updated_at":"2025-04-12T01:17:53.223Z","avatar_url":"https://github.com/lslezak.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Webpack Experiment\n\nThis is experimental repository for compiling the\n[Agama](https://github.com/agama-project/agama) integration tests and bundling\nall dependencies into a single file.\n\n## Advantages\n\n- Puppeteer and it's dependencies are not needed on the Live ISO\n- The tests can use additional libraries if needed, they do not need to depend\n  on the Live ISO content\n- The used Puppeteer version is not bound to the Live ISO (it only needs to be\n  compatible with the included Firefox browser), the version update is simple\n- The builtin Node.js test runner supports the [Test Anything\n  Protocol](https://en.wikipedia.org/wiki/Test_Anything_Protocol) (TAP),\n  already supported by openQA\n\n## Preparation\n\nFirst install the needed NPM packages:\n\n    npm ci\n\n## Compilation\n\nTo compile the source test files run:\n\n    npm run build\n\nThis compiles the sources into the `dist` subdirectory.\n\nTo generate the target files without optimizations run this command:\n\n    npm run devel\n\nIn this case the generated files are a bit bigger.\n\nTo rebuild the tests during development automatically you can run:\n\n    npm run watch\n\nThis builds the tests in development mode to have faster builds.\n\nBy default the ESlint checks are enabled, if you want to disable them set\n`ESLINT=0` environment variable. For example use `ESLINT=0 npm run watch`.\n\n## Executing the Test\n\nThe generated test is executable, simply run it (this connects to the locally\nrunning Agama instance, to use a remote one see the options below):\n\n    ./dist/test_root_password.js\n\nIf you copy the test to different machine do not forget to also copy the\n`vendor.js` file and `*.map` files if you want to get backtrace locations in the\noriginal source code. To use the map files use the `--enable-source-maps` node\noption:\n\n    node --enable-source-maps ./dist/test_root_password.js\n\nTo use the TAP output format, use the `--test-reporter` Node.js option:\n\n    node --test-reporter=tap ./dist/test_root_password.cjs\n\nAlternatively it is possible to implement [own test reporter](\nhttps://www.nearform.com/insights/writing-a-node-js-test-reporter/).\n\nThe test currently accepts several optional arguments, run\n`./dist/test_root_password.js --help`:\n\n```\nUsage: test_root_password [options]\n\nRun a simple Agama integration test\n\nOptions:\n  -u, --url \u003curl\u003e                 Agama server URL (default:\n                                  \"http://localhost\")\n  -p, --password \u003cpassword\u003e       Agama login password (default: \"linux\")\n  -r, --root-password \u003cpassword\u003e  Target root login password (default:\n                                  \"linux\")\n  -b, --browser \u003cbrowser\u003e         Browser used for running the test (choices:\n                                  \"firefox\", \"chrome\", \"chromium\", default:\n                                  \"firefox\")\n  -h, --headed                    Run the browser in headed mode with UI (the\n                                  default is headless mode)\n  -d, --delay \u003cmiliseconds\u003e       Delay between the browser actions, useful\n                                  in headed mode (default: 0)\n  -c, --continue                  Continue the test after a failure (the\n                                  default is abort on error)\n  --help                          display help for command\n```\n\nFull example for running the browser in the English locale, using local Chrome\nbrowser in headed mode and connecting to a remote Agama instance:\n\n    LC_ALL=en_US.UTF-8 ./dist/test_root_password.js -h -b chrome -u https://agama.local\n\n## Notes\n\n- It uses the Node.js built-in testing framework and the runner instead of Mocha.js\n  (or any similar framework) which needs a special test runner that cannot be\n  bundled into the generated file by Webpack.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flslezak%2Fagama-integration-test-webpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flslezak%2Fagama-integration-test-webpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flslezak%2Fagama-integration-test-webpack/lists"}