Closed
Bug 966663
Opened 11 years ago
Closed 7 years ago
[Camera] Make unit test to work in any browser
Categories
(Firefox OS Graveyard :: Gaia::Camera, enhancement)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: dmarcos, Assigned: dmarcos)
Details
Attachments
(1 file)
To make our development workflow more nimble and comprehensible. There's no reason why we cannot make the unit tests to work on any browser desktop/mobile. We use mocha/sinon and we have good mocking of b2g specific APIs.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → dmarcos
Assignee | ||
Comment 1•11 years ago
|
||
You can now run the unit test in any browser. From your osx terminal:
open apps/camera/test/unit/index.html
I also added a Gruntfile.js and a package.json so you can monitor file changes using LiveReload.
0. cd apps/camera
1. npm install
2. Install the LiveReload extension for your browser
http://feedback.livereload.com/knowledgebase/articles/86242-how-do-i-install-and-use-the-browser-extensions
3. grunt watch
Assignee | ||
Comment 2•11 years ago
|
||
Attachment #8377024 -
Flags: feedback?(wilsonpage)
Attachment #8377024 -
Flags: feedback?(jdarcangelo)
Updated•11 years ago
|
Attachment #8377024 -
Flags: feedback?(wilsonpage) → feedback+
Comment 3•11 years ago
|
||
Comment on attachment 8377024 [details] [review]
Work in Progress. Pull Request
Looks like a step in the right direction! See nits in comments on GitHub PR.
Attachment #8377024 -
Flags: feedback?(jdarcangelo) → feedback+
Assignee | ||
Comment 5•11 years ago
|
||
I want to keep it open. This is important if we want to decouple the camera app from the rest of gaia
Flags: needinfo?(dmarcos)
Comment 6•7 years ago
|
||
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•