Skip to content

Conversation

artengin
Copy link
Contributor

Refs: #60

@coveralls
Copy link

coveralls commented Sep 30, 2025

Pull Request Test Coverage Report for Build 18188203010

Details

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.02%) to 97.895%

Totals Coverage Status
Change from base Build 18186823007: 0.02%
Covered Lines: 279
Relevant Lines: 285

💛 - Coveralls

@artengin
Copy link
Contributor Author

The code has been tested on a clean Laravel project and everything works as expected.

@artengin
Copy link
Contributor Author

The .env.example file is taken from a clean Laravel project, which is generated automatically during Laravel installation.

I installed Laravel using this command:

composer create-project --prefer-dist laravel/laravel laravel

@DenTray DenTray assigned artengin and unassigned AZabolotnikov Oct 2, 2025
@artengin artengin assigned DenTray and unassigned artengin Oct 2, 2025
@DenTray DenTray requested a review from Copilot October 2, 2025 07:40
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds functionality to automatically generate a .env.development file by copying from .env.example if the development environment file doesn't already exist. This ensures that the development environment configuration is always available during project initialization.

  • Adds automatic creation of .env.development file from .env.example template
  • Updates test mocks to include the new copy operation
  • Maintains existing environment file update functionality

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/Commands/InitCommand.php Adds logic to copy .env.example to .env.development if missing
tests/Support/Traits/InitCommandMockTrait.php Adds helper method for mocking copy function calls
tests/InitCommandTest.php Updates all test cases to mock the new copy operation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@DenTray
Copy link
Collaborator

DenTray commented Oct 2, 2025

@artengin please implement test case when .env.developmetn is already exists

@DenTray DenTray assigned artengin and unassigned DenTray Oct 2, 2025
@artengin artengin assigned DenTray and unassigned artengin Oct 2, 2025
@DenTray DenTray merged commit 2de6d18 into main Oct 2, 2025
3 checks passed
@DenTray DenTray deleted the generate-env-development branch October 2, 2025 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants