I'm totally new to VR and am working on a Vr space shooter in AFrame for a class project and was wondering if there is any documentation/standards for TDD in AFrame. Could anyone point me in the right direction?
相关问题
- Problems with changing color of gltf object
- How to enable anti-aliasing in A-Frame?
- How to find the coordinates of a raycaster interse
- How to load JSON data into an A-Frame component?
- (A-Frame) local gltf wont load; Cannot read proper
相关文章
- Aframe gltf-model demo with envmap
- How to change the pivot point, transform origin, o
- How can I hide an element with A-Frame?
- set a loading animation with a-frame
- Aframe video only plays muted on ios
- How to change the rotation axis for an animated A-
- AFrame: How to render a camera to a texture
- gltf file not showing in Aframe
Build your application almost entirely in A-Frame components: https://aframe.io/docs/0.4.0/guides/writing-a-component.html
Then test the components. Just about every component in the A-Frame codebase has unit tests: https://github.com/aframevr/aframe/tree/master/tests/components
The component template in
angle
also has a unit test setup. https://github.com/aframevr/angle/tree/master/templates/component (npm install -g angle && angle initcomponent
for a standalone component).The tests use Karma to spin up a real browser and execute code. It appends entities to the DOM, and attaches components with different property values, and asserts values. A basic example: