{"id":26414253,"url":"https://github.com/borisskert/spring-cucumber-profiles","last_synced_at":"2026-05-05T14:32:26.900Z","repository":{"id":104038401,"uuid":"254158861","full_name":"borisskert/spring-cucumber-profiles","owner":"borisskert","description":"Little project which shows how to test a spring-boot application within different activated profiles with cucumber","archived":false,"fork":false,"pushed_at":"2020-04-08T19:16:21.000Z","size":70,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-26T02:03:04.753Z","etag":null,"topics":["cucumber","spring","spring-boot","spring-context","spring-context-configuration","spring-profie","spring-profiles"],"latest_commit_sha":null,"homepage":"","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/borisskert.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-04-08T17:42:12.000Z","updated_at":"2024-06-03T21:25:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"9f6da23a-3453-4674-a248-bb5905292ceb","html_url":"https://github.com/borisskert/spring-cucumber-profiles","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/borisskert/spring-cucumber-profiles","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borisskert%2Fspring-cucumber-profiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borisskert%2Fspring-cucumber-profiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borisskert%2Fspring-cucumber-profiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borisskert%2Fspring-cucumber-profiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/borisskert","download_url":"https://codeload.github.com/borisskert/spring-cucumber-profiles/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borisskert%2Fspring-cucumber-profiles/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32653526,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cucumber","spring","spring-boot","spring-context","spring-context-configuration","spring-profie","spring-profiles"],"created_at":"2025-03-17T23:58:25.631Z","updated_at":"2026-05-05T14:32:26.878Z","avatar_url":"https://github.com/borisskert.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ~~I need help!~~ Problem SOLVED!\n\nMy goal is to run different cucumber step definitions with different spring profiles:\n\n```gherkin\nFeature: My Feature\n\n  Scenario: Get my text with default profile\n    Given The application is running\n    And No profile is active\n    When I ask for my text\n    Then I should get 'This is default'\n\n  Scenario: Get my text with debug profile\n    Given The application is running\n    Given Profile 'debug' is active\n    When I ask for my text\n    Then I should get 'This is for debug'\n\n  Scenario: Get my text with real profile\n    Given The application is running\n    Given Profile 'real' is active\n    When I ask for my text\n    Then I should get 'This is for real!'\n```\n\nThe reason is there a several services implementing the interface `MyService`\n\n```java\npublic interface MyService {\n    String get();\n}\n```\n\nEach of them only active for its profile:\n\n| class | profile | result |\n|-------|---------|--------|\n| MyDefaultService | \u003cnone\u003e  | \"This is default\"   | \n| MyRealService    | \"real\"  | \"This is for real!\" | \n| MyDebugService   | \"debug\" | \"This is for debug\" | \n\n~~The cucumber tests are failing, the goal is to make them green...~~\n~~Thank you in advice.~~\n\nTests are now green - problem solved.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborisskert%2Fspring-cucumber-profiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fborisskert%2Fspring-cucumber-profiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborisskert%2Fspring-cucumber-profiles/lists"}