Closed Bug 905495 Opened 11 years ago Closed 10 years ago

unit test infrastructure for gaia build system

Categories

(Firefox OS Graveyard :: Gaia, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: yurenju, Assigned: gduan)

References

Details

Attachments

(1 file)

we shoud have unit test infrasture for gaia build system to help us have a reliable and testable build system.

we plan to support node.js and firefox extension for our build system, so this infrasture should have compatibility to run both on those two javascript environments.

Using mocha might be a good idea because it can run on node.js and browser with different configuration.
Assignee: nobody → yurenju.mozilla
Assignee: yurenju.mozilla → gduan
Attached file PR to master
This patch has implemented the first step of build test.
We'll implement more tests later.
Attachment #8347858 - Flags: review?(yurenju.mozilla)
Comment on attachment 8347858 [details]
PR to master

1. please use tdd style for unit tests
2. now we have conflict, please rebase and set me review flag again.
Attachment #8347858 - Flags: review?(yurenju.mozilla)
Comment on attachment 8347858 [details]
PR to master

Changed to tdd and rebased.
Thanks.
Attachment #8347858 - Flags: review?(yurenju.mozilla)
Comment on attachment 8347858 [details]
PR to master

looks good to me, r=yurenju if nits is addressed which I mentioned on github.
Attachment #8347858 - Flags: review?(yurenju.mozilla) → review+
Thanks Yuren!
https://github.com/mozilla-b2g/gaia/commit/45683b75b25449f44780a2a6b4f6fdb89887e047
We'll open several bugs to add unit tests for build scripts.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: