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)

ARM
Gonk (Firefox OS)
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: dmarcos, Assigned: dmarcos)

Details

Attachments

(1 file)

46 bytes, text/x-github-pull-request
justindarc
: feedback+
wilsonpage
: feedback+
Details | Review
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: nobody → dmarcos
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
Attachment #8377024 - Flags: feedback?(wilsonpage)
Attachment #8377024 - Flags: feedback?(jdarcangelo)
Attachment #8377024 - Flags: feedback?(wilsonpage) → feedback+
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+
Diego, is this still something you're working on?
Flags: needinfo?(dmarcos)
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)
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.

Attachment

General

Created:
Updated:
Size: