mirror of
				https://github.com/kevinveenbirkenbach/coding-challenge-online-shop.git
				synced 2025-11-04 11:07:58 +00:00 
			
		
		
		
	Added test environment
This commit is contained in:
		@@ -29,7 +29,12 @@ existing colors.
 | 
				
			|||||||
- Please cover your code with unit tests.
 | 
					- Please cover your code with unit tests.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## start
 | 
					## start
 | 
				
			||||||
To run the program execute
 | 
					To run the program execute:
 | 
				
			||||||
```bash
 | 
					```bash
 | 
				
			||||||
  docker-compose up -d
 | 
					  docker-compose up -d
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					## test
 | 
				
			||||||
 | 
					To run the tests execute:
 | 
				
			||||||
 | 
					```bash
 | 
				
			||||||
 | 
					  test.sh
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										20
									
								
								src/phpunit.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								src/phpunit.xml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
				
			|||||||
 | 
					<phpunit bootstrap="./vendor/autoload.php">
 | 
				
			||||||
 | 
					  <testsuites>
 | 
				
			||||||
 | 
					    <testsuite name="Controllers">
 | 
				
			||||||
 | 
					      <directory>./controller/</directory>
 | 
				
			||||||
 | 
					      <file>*Test.php</file>
 | 
				
			||||||
 | 
					    </testsuite>
 | 
				
			||||||
 | 
					    <testsuite name="Core">
 | 
				
			||||||
 | 
					      <directory>./core/</directory>
 | 
				
			||||||
 | 
					      <file>*Test.php</file>
 | 
				
			||||||
 | 
					    </testsuite>
 | 
				
			||||||
 | 
					    <testsuite name="Entities">
 | 
				
			||||||
 | 
					      <directory>./entity/</directory>
 | 
				
			||||||
 | 
					      <file>*Test.php</file>
 | 
				
			||||||
 | 
					    </testsuite>
 | 
				
			||||||
 | 
					    <testsuite name="Repositories">
 | 
				
			||||||
 | 
					      <directory>./repository/</directory>
 | 
				
			||||||
 | 
					      <file>*Test.php</file>
 | 
				
			||||||
 | 
					    </testsuite>
 | 
				
			||||||
 | 
					  </testsuites>
 | 
				
			||||||
 | 
					</phpunit>
 | 
				
			||||||
		Reference in New Issue
	
	Block a user