mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Generate coverage with sqlite. (#18813)
This commit is contained in:
		
							
								
								
									
										7
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								Makefile
									
									
									
									
									
								
							@@ -514,6 +514,10 @@ bench-pgsql: integrations.pgsql.test generate-ini-pgsql
 | 
				
			|||||||
integration-test-coverage: integrations.cover.test generate-ini-mysql
 | 
					integration-test-coverage: integrations.cover.test generate-ini-mysql
 | 
				
			||||||
	GITEA_ROOT="$(CURDIR)" GITEA_CONF=integrations/mysql.ini ./integrations.cover.test -test.coverprofile=integration.coverage.out
 | 
						GITEA_ROOT="$(CURDIR)" GITEA_CONF=integrations/mysql.ini ./integrations.cover.test -test.coverprofile=integration.coverage.out
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.PHONY: integration-test-coverage-sqlite
 | 
				
			||||||
 | 
					integration-test-coverage-sqlite: integrations.cover.sqlite.test generate-ini-sqlite
 | 
				
			||||||
 | 
						GITEA_ROOT="$(CURDIR)" GITEA_CONF=integrations/sqlite.ini ./integrations.cover.sqlite.test -test.coverprofile=integration.coverage.out
 | 
				
			||||||
 | 
					
 | 
				
			||||||
integrations.mysql.test: git-check $(GO_SOURCES)
 | 
					integrations.mysql.test: git-check $(GO_SOURCES)
 | 
				
			||||||
	$(GO) test $(GOTESTFLAGS) -c code.gitea.io/gitea/integrations -o integrations.mysql.test
 | 
						$(GO) test $(GOTESTFLAGS) -c code.gitea.io/gitea/integrations -o integrations.mysql.test
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -532,6 +536,9 @@ integrations.sqlite.test: git-check $(GO_SOURCES)
 | 
				
			|||||||
integrations.cover.test: git-check $(GO_SOURCES)
 | 
					integrations.cover.test: git-check $(GO_SOURCES)
 | 
				
			||||||
	$(GO) test $(GOTESTFLAGS) -c code.gitea.io/gitea/integrations -coverpkg $(shell echo $(GO_PACKAGES) | tr ' ' ',') -o integrations.cover.test
 | 
						$(GO) test $(GOTESTFLAGS) -c code.gitea.io/gitea/integrations -coverpkg $(shell echo $(GO_PACKAGES) | tr ' ' ',') -o integrations.cover.test
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					integrations.cover.sqlite.test: git-check $(GO_SOURCES)
 | 
				
			||||||
 | 
						$(GO) test $(GOTESTFLAGS) -c code.gitea.io/gitea/integrations -coverpkg $(shell echo $(GO_PACKAGES) | tr ' ' ',') -o integrations.cover.sqlite.test -tags '$(TEST_TAGS)'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.PHONY: migrations.mysql.test
 | 
					.PHONY: migrations.mysql.test
 | 
				
			||||||
migrations.mysql.test: $(GO_SOURCES)
 | 
					migrations.mysql.test: $(GO_SOURCES)
 | 
				
			||||||
	$(GO) test $(GOTESTFLAGS) -c code.gitea.io/gitea/integrations/migration-test -o migrations.mysql.test
 | 
						$(GO) test $(GOTESTFLAGS) -c code.gitea.io/gitea/integrations/migration-test -o migrations.mysql.test
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user