Closed Bug 1024791 Opened 10 years ago Closed 10 years ago

Scan the add-on for tests instead of using require('@test/options').allTestModules

Categories

(Add-on SDK Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: evold, Assigned: evold)

References

Details

Attachments

(2 files)

At the moment cfx/python feeds a list of filenames for tests through require('@test/options').allTestModules.  Instead of this we should scan the add-on for test files so that a tool like jpm doesn't have to input them.

Long term we want to use a "test" key in the package.json file, which would point to a js file that could run any desired test suite, at the moment our default one will be used, which currently takes a list of test files via require('@test/options').allTestModules and I would like to change to have it scan for the test files automatically.
ie default affected is `{ "test": "sdk/test/runner" }`
Assignee: nobody → evold
Attachment #8439635 - Flags: feedback?(rFobic)
Comment on attachment 8439635 [details] [review]
Link to Github pull-request: https://github.com/mozilla/addon-sdk/pull/1511

I like it overall, although would much rather leveraged all util/sequence stuff to make improve expressiveness & add laziness. That being said I leave it up to you, as I don't think either is important enough to block this.

I also r+ it as end up doing full review anyhow. I would just recommend making sure that we run same amount of tests with and without this change.
Attachment #8439635 - Flags: review?(jsantell)
Attachment #8439635 - Flags: review+
Attachment #8439635 - Flags: feedback?(rFobic)
Comment on attachment 8443241 [details] [review]
Link to Github pull-request: https://github.com/mozilla/addon-sdk/pull/1521

Awesome stuff -- just a comment on the PR that could remove code dupe, and possibly an off-by-one error
Attachment #8443241 - Flags: review?(jsantell) → review+
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: