{"id":40940828,"url":"https://github.com/codio/atests-simple","last_synced_at":"2026-01-22T04:34:17.516Z","repository":{"id":206438252,"uuid":"716475395","full_name":"codio/atests-simple","owner":"codio","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-27T09:17:46.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-27T10:26:48.879Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-11-09T08:06:58.000Z","updated_at":"2024-11-27T09:17:41.000Z","dependencies_parsed_at":"2023-11-09T16:31:04.408Z","dependency_job_id":"167f6911-b1fb-4b24-9262-1fa07d5b7768","html_url":"https://github.com/codio/atests-simple","commit_stats":null,"previous_names":["codio/atests-simple"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codio/atests-simple","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codio%2Fatests-simple","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codio%2Fatests-simple/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codio%2Fatests-simple/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codio%2Fatests-simple/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codio","download_url":"https://codeload.github.com/codio/atests-simple/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codio%2Fatests-simple/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28654736,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2026-01-22T04:34:17.456Z","updated_at":"2026-01-22T04:34:17.508Z","avatar_url":"https://github.com/codio.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n## Quick start\n1. Clone the git repo — git clone https://github.com/codio/atests-simple.git \n2. Install java [jdk](https://openjdk.org/)\n3. Install [maven](http://maven.apache.org/download.cgi)\n4. Create src/test/resources/config.properties file and set teacher (teacher should be already added to organization) and students (this example needs 4 test students, no matter already added to org, or new) credentials in it, like:\n```\nteacher.login = loginhere\nteacher.email = email@adress.here\nteacher.firstName = namehere\nteacher.lastName = lastnamehere\nteacher.password = passwordhere\n\nstudent1.login = student1loginhere\n... and so on\n```\n5. Run src/test/java/helpers/COneCreateCourseHelper (in console `mvn clean -Dtest=COneCreateCourseHelper test`). It will create test course\n6. To run all tests go to project's root and on command line run `mvn clean test` or import project as maven module to IDE and run as junit tests. See **Run tests** for more options\n7. To see results of tests in Allure go to project's root and on command line run `mvn allure:serve`\n\n## Run tests\nIt's possible to specify properties (such as environment, runType etc) in src/test/resources/config.properties file.\nBy default tests run on prod in Chrome browser\nAlso some properties can be specified as arguments in command line\nTo run tests from command line go to project's root and use commands in terminal:\n- `mvn clean test` - runs all tests with default config\n- `mvn clean test -DbaseUrl=\"prod\"` - runs tests on prod. Acceptable values: prod\n- `mvn clean test -Dbrowser=\"firefox\"` - runs tests with firefox browser. Browser should be installed in OS. Acceptable values: chrome, firefox\n- `mvn clean test -Dheadless=\"true\"` - runs tests in headless mode. Acceptable values: true, false\n- `mvn clean -Dtest=COneVariablesPageTryItOneByOneTest test` - runs all tests from LoginTest class\n- `mvn clean -Dtest=*OneByOne* test` - runs tests from classes whose name contains \"Login\"\n- `mvn clean -Dtest=COneVariablesPageTryItOneByOneTest#secondTryIt test` - runs secondTryIt test from COneVariablesPageTryItOneByOneTest class\n- `mvn clean -Dgroups=\"content, assignment\" test` - runs all tests with `@Tag(\"course\")` and all tests with `@Tag(\"project\")`\n\n[Table](https://docs.google.com/spreadsheets/d/1u3yHkny4RLEJS2v31S35cGjmaQUZtZe4GdhUfSwBalU/edit?usp=sharing) of available tests with tags\n\nMore info about running tests by maven [there](https://maven.apache.org/surefire-archives/surefire-2.22.1/maven-surefire-plugin/examples/single-test.html)\n\n## Code style checks\n\nAfter code editing use auto-formatting and style checks\n\n### Auto-formatting\n\nA code could be formatted in automatic way with Maven command:\n\n```bash\nmvn spotless:apply\n```\n\nFormatting could be checked with Maven command:\n\n```bash\nmvn spotless:check\n```\n\n### Additional style checks\n\nAdditional rules could be checked with Maven command:\n\n```bash\nmvn checkstyle:checkstyle\n```\n\nIf this command fails, tests can't be run by maven (e.g. by `mvn clean test` command). To fix it `mvn spotless:apply` should be run. Sometimes manual fixing needed","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodio%2Fatests-simple","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodio%2Fatests-simple","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodio%2Fatests-simple/lists"}