22 Commits

Author SHA1 Message Date
Jeff Williams
fe04fa18f9 change ID for pure JS parser to 'js'; remove half-baked ability to use arbitrary parsers; test coverage 2015-02-23 09:14:42 -08:00
Jeff Williams
ae94af0cd8 turn env global into a module, and use the module instead of the global (#812)
The `env` global remains available, since templates and plugins may rely upon it, but it's deprecated as of JSDoc 3.4.0.
2015-02-17 19:07:10 -08:00
Jeff Williams
8d896db809 process implements tags before augments tags (#906) 2015-02-05 08:25:24 -08:00
Jeff Williams
5512af9677 update package schema, and add tests to validate package objects against the schema (#788) 2014-10-22 13:31:04 -07:00
MinHyeong Kim
cc9ceb700b fix codes for patch. excepts 'implements not functions' issue. 2014-08-11 16:01:59 -07:00
Jeff Williams
41ccdf832e fix known issues on Node.js 0.11 (#555) 2013-12-26 10:15:03 -08:00
Jeff Williams
d426d5696b add Grunt tasks to run tests for all supported runtimes/parsers (#525)
To run the tests:
1. npm install -g grunt-cli
2. npm install (in JSDoc directory)
3. npm test (or: grunt test)
2013-12-25 21:47:38 -08:00
Jeff Williams
42e6822009 update JSON schema; validate doclets against schema (#327) 2013-12-03 16:45:36 -08:00
Jeff Williams
99ab99298d add partial test infrastructure to support testing multiple parsers in one runtime
not fully implemented.
2013-11-04 06:46:47 -08:00
Jeff Williams
de4297b20b refactor jsdoc.js; update Rhino
- Switched to a new Rhino fork: https://github.com/jsdoc3/rhino
  (currently reflects mozilla/rhino HEAD + enhancements for JSDoc)
- Removed jsdoc/util/global; new Rhino fork provides a `global` alias
  just like Node.js
- Moved most of jsdoc.js into cli.js, and refactored for clarity
2013-10-27 10:46:27 -07:00
Jeff Williams
751bea1b0a fixes for Node.js compatibility (see details)
- new Rhino .jar to help find module paths
(https://github.com/hegemonic/rhino/commit/31b70105)
- make __dirname and process.cwd() provide the current module path; use
only env.dirname for JSDoc's home dir; fix callers
- get rid of jsdoc/util/include (and update test framework accordingly)
- avoid running Rhino/Node.js tests on the wrong runtime
- remove support for global 'publish' function, which relied upon
jsdoc/util/include
- update jsdoc/util/dumper for consistency with Node.js'
JSON.stringify()
- fix jsdoc/util/runtime to detect Node.js correctly
- add Node.js versions of jsdoc/fs and jsdoc/path
- other minor cleanup
2013-10-25 23:30:56 -07:00
Jeff Williams
735a9b790c esprima parser (currently disabled) 2013-10-21 08:02:03 -07:00
Jeff Williams
c058a60ed1 hook up node visitors; gratuitous refactor of 'runtime' module (formerly 'vm'); move runtime-specific code
includes updated Rhino jar:
https://github.com/hegemonic/rhino/commit/b63c00d5
2013-07-05 09:11:27 -07:00
Jeff Williams
8d6f746091 don't execute templateHelper tests twice (#256) 2013-03-20 10:52:21 -07:00
Jeff Williams
d73570defc make fs module consistent with Node.js (#211) 2012-12-26 19:03:05 -08:00
Jeff Williams
e4236eaa42 remove most globals from jsdoc.js (#287)
for clarity, also forward-declared all variables in main()
2012-12-25 04:55:50 -08:00
Jeff Williams
a17c90dfd2 deprecate env.dirname in favor of __dirname (#286)
plus some minor cleanup to address JSHint warnings
2012-12-23 09:45:11 -08:00
Jeff Williams
cd2fba4a3a use safer version of hasOwnProperty 2012-12-23 08:49:39 -08:00
Jeff Williams
e17601feb1 remove Envjs from test harness; remove broken --coffee option; add --nocolor option 2012-10-07 07:39:47 -07:00
Jeff Williams
22e899fa9d change __dirname to env.dirname
this fixes a JSHint error that cannot be suppressed.
2012-07-03 17:37:17 -07:00
Ben Blank
a3c2147e17 make allowances for Windows-style paths when testing 2012-06-16 15:41:31 -07:00
Jannon
2d73440b3d Testing Framework Upgrade Part I
This first part of the testing framework upgrade:

- enhances the jsdoc script to allow switching to debug mode from the command line
- uses Jasmine to run tests
- adds flexibility to run tests from multiple root directories
- does automatic test discovery, so test files can just be created, dropped in an appropriate folder, and run without having to explicity add it to the test runner
- cleans up the test directory layout
- incorporates env.rhino.js which should make it easier to test templates
- is incomplete: this is just a savepoint.  About 1/3 of the tests have been converted.  The rest are still run through the old testrunner
2012-04-30 17:39:50 -07:00