You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 29, 2019. It is now read-only.
Make this module a collection of utilities, i.e. move the current implementation out of /index.js into lib/ folder, change the way how the module is used:
var lt = require('loopback-testing').TestCaseHelper;
lt.describe(/* ... */)
// this way I can add my new code as
var TestDataBuilder = require('loopback-testing').TestDataBuilder;
Add a function that will merge install describe/it/etc. as globals, possibly extending symbols already defined by Mocha.
require('loopback-testing').mocha('bdd');// now I can write// describe.whenCalledRemotely// given.model('Product', /*.. */)
Later we can implement support for other interfaces than bdd and possibly other test frameworks like TAP.
@ritch what's you opinion? What was the reason why you decided to not amend mocha's global symbols, as we discussed in the other pull request?
Perhaps the second point should be implemented by a standalone module depending on loopback-testing, e.g. loopback-mocha?
The text was updated successfully, but these errors were encountered:
I couldn't consistently modify the globals. Either mocha is resetting them for each test or my implantation was some how flawed. I'd rather do it that way, but not certain it is possible.
Make this module a collection of utilities, i.e. move the current implementation out of /index.js into lib/ folder, change the way how the module is used:
var lt = require('loopback-testing').TestCaseHelper;
lt.describe(/* ... */)
// this way I can add my new code as
var TestDataBuilder = require('loopback-testing').TestDataBuilder;
Add a function that will merge install describe/it/etc. as globals, possibly extending symbols already defined by Mocha.
require('loopback-testing').mocha('bdd');
// now I can write
// describe.whenCalledRemotely
// given.model('Product', /*.. */)
Later we can implement support for other interfaces than bdd and possibly other test frameworks like TAP.
@ritch what's you opinion? What was the reason why you decided to not amend mocha's global symbols, as we discussed in the other pull request?
Perhaps the second point should be implemented by a standalone module depending on loopback-testing, e.g. loopback-mocha?
—
Reply to this email directly or view it on GitHub.
I am proposing two changes:
Make this module a collection of utilities, i.e. move the current implementation out of
/index.js
intolib/
folder, change the way how the module is used:Add a function that will merge install describe/it/etc. as globals, possibly extending symbols already defined by Mocha.
Later we can implement support for other interfaces than bdd and possibly other test frameworks like TAP.
@ritch what's you opinion? What was the reason why you decided to not amend mocha's global symbols, as we discussed in the other pull request?
Perhaps the second point should be implemented by a standalone module depending on loopback-testing, e.g. loopback-mocha?
The text was updated successfully, but these errors were encountered: