Unlibrary is an app that allows people to borrow books amongst their community instead of using the library.
Clone this repository and import it into Android Studio.
git clone https://github.com/CMPUT301F20T24/Unlibrary.git
- Google Pixel XL
cd firestore-emulator
npm install # Install firebase CLI
⚠️ Why are some tests commented out? We implemented Hilt/DI quite late in the project and missed some refactorings and in order to test some of the modules, we needed to refactor production code. Given the amount of time we have left, we decided not to finish some of the unit tests.
cd firestore-emulator
npm run test
-
In a shell, run the following commands to start the emulator
cd firestore-emulator npm run start-emulator
-
Open the Unlibrary project in Android Studio
-
Right click on the
test
directory (notandroidTest
) in Project View, and clickRun
With the project open in Android Studio, right click on androidTest
directory in Project View and click Run
⚠️ UI tests may fail when run on physical device read Troubleshooting below
- Wiki page here
- Generated Javadoc can be found in ./doc/javadoc or Javadoc - Overview
-
Failing UI tests
Error message along the lines of: Unable to find view in hierarchy
Fix: Use the emulator to run UI tests instead of a physical device, and disable animations from Developer options inside the emulator. We found that UI indices can change when running on physical device. Since our UI checks are done in Firebase Test Labs which uses the emulator, we fixed our tests to that environment.
- Armianto Sumitro
- Cyrus Diego
- Taranjot Singh
- Golnoush Hassanzadeh
- Daniel Rojas-Cardona
- Caleb Schoepp