VladimirKhil/SIOnline
关于
SIGame web client
游戏与模拟器实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文SIGame (trivia game) client running in web, on desktop and in Steam (with the help of Tauri).
Available clients can be found here: https://vladimirkhil.com/si/game
For compilation and running you need Node.js version 18.15.0 or higher.
Used technologies: Typescript, Webpack (with loaders and plugins), React, Redux, Redux Thunk, SignalR, TSLint, Jest, Tauri.
Run:
npm install
npm run start
The development server will automatically open your browser to http://localhost:8080.
Build:
npm install
npm run build-prod
Testing
SIOnline includes multiple testing approaches:
Unit Tests
Run Jest unit tests for components and logic:
npm test
End-to-End Tests
Run Playwright E2E tests for complete user flows:
# Run all E2E tests
npm run test:e2e
# Run in UI mode (interactive) - REQUIRES display/X Server
# Only works on local machines with graphical display
npm run test:e2e:ui
# Run in debug mode (step-through)
npm run test:e2e:debug
Note: The UI mode (test:e2e:ui) requires a graphical environment and will not work in headless environments like CI pipelines or GitHub Codespaces. Use npm run test:e2e instead in those environments.
Integration Test
Comprehensive game flow test without UI (connects to live server).
Disabled by default - only runs when explicitly enabled during manual development:
RUN_INTEGRATION_TEST=1 npm run test GameIntegration.test.ts
See test/GAME_INTEGRATION_TEST.md for details.
Manual Testing
For detailed instructions on visual testing with UI, see TESTING.md.
Mock Service Worker (MSW)
API mocking for testing without a live server. See docs/TESTING_WITH_MSW.md for details.
Desktop build
tauri/src-tauri/tauri.conf.json:
"beforeBuildCommand": "npm run build", "frontendDist": "../dist"
tauri/vite.config.ts:
comment out: root: '../dist'
Steam build
tauri/src-tauri/tauri.conf.json:
"beforeBuildCommand": "", "frontendDist": "../../dist"
tauri/vite.config.ts:
uncomment: root: '../dist'
Set new version in Cargo.toml and tauri.conf.json
run: npm run build-prod tauri/build-steam.ps1
探索相关项目
加载中…