File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
src-tauri/src/fileflow/stuct/config Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,12 @@ jobs:
145145 - name : Build Frontend
146146 run : pnpm run build
147147
148+ # Run Tauri integration tests
149+ - name : Run Tauri Integration Tests
150+ run : |
151+ cd src-tauri
152+ cargo test
153+
148154 # Start backend for integration tests (if needed)
149155 - name : Start Backend for Integration Tests
150156 if : needs.changes.outputs.frontend == 'true' && needs.changes.outputs.backend == 'true'
@@ -156,10 +162,4 @@ jobs:
156162 - name : Build Tauri Application
157163 run : pnpm tauri build --verbose
158164 env :
159- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
160-
161- # Run Tauri integration tests
162- - name : Run Tauri Integration Tests
163- run : |
164- cd src-tauri
165- cargo test --verbose --all-features
165+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ mod tests {
7171 async fn test_save_config_struct ( ) {
7272 let config = get_test_config ( ) ;
7373
74- assert_eq ! ( config. db_driver, DatabaseEngine :: Postgres ) ;
74+ assert_eq ! ( config. db_driver, DatabaseEngine :: SQLite ) ;
7575 assert_eq ! ( config. db_host, "db_host" ) ;
7676 assert_eq ! ( config. port, "port" ) ;
7777 assert_eq ! ( config. username, "username" ) ;
@@ -87,7 +87,7 @@ mod tests {
8787 let serialized = serde_json:: to_string ( & config) . unwrap ( ) ;
8888 let deserialized: SaveConfig = serde_json:: from_str ( & serialized) . unwrap ( ) ;
8989
90- assert_eq ! ( deserialized. db_driver, DatabaseEngine :: MySQL ) ;
90+ assert_eq ! ( deserialized. db_driver, DatabaseEngine :: SQLite ) ;
9191 assert_eq ! ( deserialized. config_name, "config_name" ) ;
9292 assert_eq ! ( deserialized. db_host, "db_host" ) ;
9393 assert_eq ! ( deserialized. port, "port" ) ;
You can’t perform that action at this time.
0 commit comments