Test Plan for Reflex Platform
First give yourself a fresh place for testing and copy of Reflex Platform:
Making sure that the try-reflex shell works
This command will not immediately exit. It will instead make a new "shell"; the program where you type commands inside the old shell.
If you are running this command on a macOS you will need to add the
dynamicandthreadedflags each time you invoke ghc. So to make this easier on macOS do:and on Linux do
Testing "Hello, world"
Copy the following into the shell (all at once):
Test the tiny program you pasted with GHC:
You should see a window with "Hello, world!".
Test it with GHCJS
On Linux:
on macOS:
Testing the host.hs example
Follow the instructions and confirm that the output event is a sequence of all of the letters you have entered To exit, ctrl-c. Exit the ./try-reflex shell with the exit command
Generating Documentation
Run the following commands. When you run them, the docs should open in your browser.
After the browser window has opened, you can close it.
Running a build on the web
If successful this will give you a file path. Run the following command depending on your system:
| Linux | Mac |
|---|---|
chromium result/bin/reflex-todomvc.jsexe/index.html | open result/bin/reflex-todomvc.jsexe/index.html |
You should test this app.
Android App:
If you are running qa from a macOS machine please skip the android tests, but be sure to QA it from a linux device.
Make sure that your android device has been plugged in, that you have deleted any app titled "reflex-todomvc" from the phone, and that you have unlocked and accepted permissions on the phone before running the following:
This command may take a couple of tries before you see Success. Sometimes you must unplug and replug your phone, or try a different cable. The app should be installed on your phone if this command was successful. Once the app is installed, test it and verify it works the same as the web version.
Testing TODOMVC app on IOS
Using a macOS run the following: Make sure the device that you are installing the app on is plugged in.
For more information on finding out what your team-id is, please see the Obelisk's README.md.
If you run into error 0xe800001c (device does not recognize this host) or similar when deploying, you need to make sure your device "trusts" your computer before deploying. On macOS 10.15 (Catalina) and newer:
Open the Finder app.
After plugging the device in with a lightning cable, it should appear in the sidebar on the left.
Click the device and click the "Trust" button that appears in Finder.
Unlock your device and tap the "Trust" button that should pop up.
After this, you should be able to deploy to your device.
Testing the 'work-on' and 'work-on-multi' scripts
This may take a while, but ultimately you should end up in a new shell. Run:
After the app builds, you should see a window pop up which says "Hello, world!". Type exit to leave the shell.
Run the work-on-multi script:
Again, you should see a window pop up which says "Hello, world!".
Note that hack-off might fail unless GitHub knows about your ssh key.