|  | @@ -185,3 +185,23 @@ func TestActiveProfileViaTargetedService(t *testing.T) {
 | 
	
		
			
				|  |  |  		assert.Assert(t, !strings.Contains(res.Combined(), projectName), res.Combined())
 | 
	
		
			
				|  |  |  	})
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +func TestDotEnvProfileUsage(t *testing.T) {
 | 
	
		
			
				|  |  | +	c := NewParallelCLI(t)
 | 
	
		
			
				|  |  | +	const projectName = "compose-e2e-dotenv-profiles"
 | 
	
		
			
				|  |  | +	const profileName = "test-profile"
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	t.Cleanup(func() {
 | 
	
		
			
				|  |  | +		_ = c.RunDockerComposeCmd(t, "--project-name", projectName, "down")
 | 
	
		
			
				|  |  | +	})
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	t.Run("compose up with profile", func(t *testing.T) {
 | 
	
		
			
				|  |  | +		res := c.RunDockerComposeCmd(t, "-f", "./fixtures/profiles/compose.yaml",
 | 
	
		
			
				|  |  | +			"--env-file", "./fixtures/profiles/test-profile.env",
 | 
	
		
			
				|  |  | +			"-p", projectName, "--profile", profileName, "up", "-d")
 | 
	
		
			
				|  |  | +		res.Assert(t, icmd.Expected{ExitCode: 0})
 | 
	
		
			
				|  |  | +		res = c.RunDockerComposeCmd(t, "-p", projectName, "ps")
 | 
	
		
			
				|  |  | +		res.Assert(t, icmd.Expected{Out: regularService})
 | 
	
		
			
				|  |  | +		res.Assert(t, icmd.Expected{Out: profiledService})
 | 
	
		
			
				|  |  | +	})
 | 
	
		
			
				|  |  | +}
 |