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
This sounds like something complex, but perhaps you have better ideas.
ava-generate-tests could generate empty tests by statically analyzing the code, maybe behaving like a coverage tool by figuring out all the ways it could be run (e.g. isCool needs to be true to go in this if statement)
It can't actually build functional tests or figure out what they're supposed to output, but it could at least provide some sort of boilerplate to manually verify.
importtestfrom'ava';importcamelizedModuleName,{strLength}from'.';test('return undefined',t=>{t.same(camelizedModuleName(),undefined);});test('return hello',t=>{t.same(camelizedModuleName(true),'hello');});test(TBD,t=>{// "TBD" would be something the dev would have to replacet.same(strLength(TBD),TBD);});
The text was updated successfully, but these errors were encountered:
This sounds like something complex, but perhaps you have better ideas.
ava-generate-tests
could generate empty tests by statically analyzing the code, maybe behaving like a coverage tool by figuring out all the ways it could be run (e.g.isCool
needs to betrue
to go in thisif
statement)It can't actually build functional tests or figure out what they're supposed to output, but it could at least provide some sort of boilerplate to manually verify.
Example
input.js
:Example
generated-tests.js
:The text was updated successfully, but these errors were encountered: