Trying TDD with ARKit
ARPlacer
BDD Spec
As a user I want to place a random object in real world.
I also want to see the distance between AR object and my phone.
Use Cases
1. Scan the real world.
Primary course:
- When the app opens, system should automatically start scanning the surrounding.
- System should show feature points.
- System should show user they can tap to place random object over the real world.
Side Effect:
- System should continue scanning the area throughout the app’s life time.
Camera tracking normal – Primary Course:
- System should show user they can tap to place random object over the real world.
AR Session failed – Error Course:
- Show error
- Give option to restart session
Camera tracking limited – Error Course:
- Show error
Camera tracking not available – Error Course:
- Show error
2. Place a random Object on real world
Primary Course:
- User taps on screen over real world.
- System creates an object of random shape and color.
- System places this object in the tapped position over the real world.
Anchor not available – Error Course:
- Show error
3. Display distance between object and phone
Object is in the screen – Primary Course:
- System should calculate the distance between object and phone.
- System displays the distance over the object in the screen.
Object is not in the screen – Primary Course:
- System does nothing