hex13 / lupa

Analysis tool for JavaScript
MIT License
8 stars 0 forks source link

TODO: more tests #9

Open hex13 opened 8 years ago

hex13 commented 8 years ago

modules which perform actual analysis (utils for AST and plugin which analyses JavaScript) are tested https://github.com/hex13/lupa/tree/master/plugins/test

but there are still no tests for

We must test if module analysis.js:

  1. calls correct plugins based on config and on files itself (e.g. file extensions)
  2. triggers event callbacks after analysis
  3. returns correct data (some sort of integration test. Exact data correctness is tested in tests for plugins, but even if some plugin correctly performs analysis, this doesn't mean that library returns correct data as a whole when called by external application).