mirror of
				https://github.com/gristlabs/grist-core.git
				synced 2025-06-13 20:53:59 +00:00 
			
		
		
		
	Adding dedicated folder for external tests
This commit is contained in:
		
							parent
							
								
									433e1ecfc2
								
							
						
					
					
						commit
						51d839f082
					
				| @ -13,6 +13,7 @@ | ||||
|     "build:prod": "buildtools/build.sh", | ||||
|     "start:prod": "sandbox/run.sh", | ||||
|     "test": "GRIST_SESSION_COOKIE=grist_test_cookie GRIST_TEST_LOGIN=1 TEST_SUPPORT_API_KEY=api_key_for_support TEST_CLEAN_DATABASE=true NODE_PATH=_build:_build/stubs:_build/ext mocha -g ${GREP_TESTS:-''} _build/test/common/*.js _build/test/client/*.js _build/test/nbrowser/*.js _build/test/server/**/*.js _build/test/gen-server/**/*.js", | ||||
|     "test:nbrowser": "GRIST_SESSION_COOKIE=grist_test_cookie GRIST_TEST_LOGIN=1 TEST_SUPPORT_API_KEY=api_key_for_support TEST_CLEAN_DATABASE=true NODE_PATH=_build:_build/stubs:_build/ext mocha -g ${GREP_TESTS:-''} --slow 6000 _build/test/nbrowser/**/*.js", | ||||
|     "test:client": "GRIST_SESSION_COOKIE=grist_test_cookie NODE_PATH=_build:_build/stubs:_build/ext mocha _build/test/client/**/*.js", | ||||
|     "test:common": "GRIST_SESSION_COOKIE=grist_test_cookie NODE_PATH=_build:_build/stubs:_build/ext mocha _build/test/common/**/*.js", | ||||
|     "test:server": "GRIST_SESSION_COOKIE=grist_test_cookie NODE_PATH=_build:_build/stubs:_build/ext mocha _build/test/server/**/*.js _build/test/gen-server/**/*.js", | ||||
|  | ||||
							
								
								
									
										1
									
								
								test/deployment/ActionLog.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								test/deployment/ActionLog.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| import "test/nbrowser/ActionLog"; | ||||
							
								
								
									
										1
									
								
								test/deployment/ChoiceList.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								test/deployment/ChoiceList.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| import "test/nbrowser/ChoiceList"; | ||||
							
								
								
									
										1
									
								
								test/deployment/DuplicateDocument.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								test/deployment/DuplicateDocument.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| import "test/nbrowser/DuplicateDocument"; | ||||
							
								
								
									
										1
									
								
								test/deployment/Fork.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								test/deployment/Fork.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| import "test/nbrowser/Fork"; | ||||
							
								
								
									
										1
									
								
								test/deployment/HomeIntro.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								test/deployment/HomeIntro.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| import "test/nbrowser/Pages"; | ||||
							
								
								
									
										1
									
								
								test/deployment/Pages.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								test/deployment/Pages.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| import "test/nbrowser/Pages"; | ||||
							
								
								
									
										4
									
								
								test/deployment/README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								test/deployment/README.md
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,4 @@ | ||||
| # Deployment tests | ||||
| 
 | ||||
| Link or import here all tests that can be run against an external server or | ||||
| a docker container (i.e: tests that don't rely on in-memory TestServer). | ||||
							
								
								
									
										1
									
								
								test/deployment/ReferenceColumns.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								test/deployment/ReferenceColumns.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| import "test/nbrowser/ReferenceColumns"; | ||||
							
								
								
									
										1
									
								
								test/deployment/ReferenceList.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								test/deployment/ReferenceList.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| import "test/nbrowser/ReferenceList"; | ||||
							
								
								
									
										1
									
								
								test/deployment/Smoke.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								test/deployment/Smoke.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| import "test/nbrowser/Smoke"; | ||||
| @ -117,7 +117,10 @@ describe("Localization", function() { | ||||
|     }); | ||||
|   }); | ||||
| 
 | ||||
|   it("breaks the server if something is wrong with resource files", async () => { | ||||
|   it("breaks the server if something is wrong with resource files", async function() { | ||||
|     if (server.isExternalServer()) { | ||||
|       this.skip(); | ||||
|     } | ||||
|     const oldEnv = new testUtils.EnvironmentSnapshot(); | ||||
|     try { | ||||
|       // Wrong path to locales.
 | ||||
|  | ||||
| @ -64,4 +64,4 @@ TEST_ADD_SAMPLES=1 TEST_ACCOUNT_PASSWORD=not-needed \ | ||||
|   GRIST_SESSION_COOKIE=grist_test_cookie \ | ||||
|   GRIST_TEST_LOGIN=1 \ | ||||
|   NODE_PATH=_build:_build/stubs \ | ||||
|   $MOCHA _build/test/nbrowser/*.js -g ${GREP_TESTS:-''} "$@" | ||||
|   $MOCHA _build/test/deployment/*.js --slow 6000 -g ${GREP_TESTS:-''} "$@" | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user