Remember that tiny little two-screen React Native app I created back in December 2025? The one that just had a Login Page and a Secure Area? Well, I may have gone a little overboard adding features to it again.
What started as a simple React Native Login Page demo for my AutomationGuild talk in April 2026 has become... way, way, way too much.
What's new in Detox Demo?
๐ Tools and Technologies Galore!
The project now uses: React Native, Yarn, Detox, Detox CLI, Allure Reports, Snyk, GitHub Actions, GitHub Workflows, GitHub Pages, Metro bundler, CocoaPods, Android Gradle configuration, iPhone simulators and Android emulators, and includes troubleshooting guides for both macOS and Windows.
All open-source. All documented. All completely unnecessary for what is essentially a Login button and a Logout button.
๐ Snyk Security Scanning
Because even a demo app that has hardcoded credentials (yes, tomsmith and SuperSecretPassword! are right there in plain text in credentials.ts) deserves security scanning!
I've added a new security.yml GitHub Actions workflow that:
- Scans
package.jsonandyarn.lockfor vulnerable npm packages - Runs Static Application Security Testing (SAST) on the source code
- Uploads results to GitHub Code Scanning so they appear in the repository's Security tab
It runs on every push to main, every pull request, and you can kick it off manually.
Snyk is free for public repositories. If it's free, it's for me, I'll take three.
๐ค Android Support
The app now runs on Android! I've added:
- android-regression.yml - A full CI/CD pipeline for Android emulator testing
- Cross-platform Gradle commands in .detoxrc.js that automatically detect Windows vs macOS
- Complete Setup for Android documentation in the README
Run locally on Windows 11 or macOS:
yarn start # Start Metro in one terminal yarn detox:android # Build and test in another
All 5 tests pass:
- ✅ Secure Area Flow: 2 tests
- ✅ Login Flow: 3 tests
๐ช Windows 11 Local Development
Since I'm developing on a Windows 11 machine these days, I asked GitHub CoPilot to generate comprehensive Setup for Windows 11 Local Development guide covering:
- Android SDK installation
- AVD creation
- Environment variable setup
- Troubleshooting common issues
Plus a matching Setup for macOS Local Development guide for MacBook users.
๐งน GitHub Copilot Code Review Fixes
I now run GitHub Copilot's code review feature on the codebase. All the source files created by GitHub Copilot now have a "Created by GitHub Copilot" comment at the top, because credit where credit is due!
Happy Testing!
No comments:
Post a Comment