Aurimas Vinckevicius
cc173ff1e5
Trim down ISSN/ISBN test for characters that should not be ignored
2015-03-30 16:28:12 -05:00
Aurimas Vinckevicius
a6e9f0aea0
Add tests for ISSN/ISBN-related Zotero.Utilities functions
2015-03-25 21:25:38 -05:00
Aurimas Vinckevicius
9624f6fac3
Fix runtests.sh to work with cygwin
2015-03-24 02:13:09 -05:00
Dan Stillman
7519287fa8
Fix JS version declaration for test support scripts
2015-03-24 02:27:33 -04:00
Simon Kornblith
a5ce4d2a66
Lengthen timeout for ISBN tests
...
I think the failures are actually LoC timing out.
2015-03-11 14:37:52 -04:00
Simon Kornblith
3583793571
Wait for bundled file updates to complete before running tests
2015-03-11 13:32:25 -04:00
Simon Kornblith
8253b98134
Remove index.js and just enumerate the files in the test directory
2015-03-09 17:41:49 -04:00
Simon Kornblith
4c45685331
Add header to EventUtils.jsm
2015-03-09 17:40:58 -04:00
Simon Kornblith
4a4073652f
updateBundledFiles before using translators and wait for completion
2015-03-09 17:17:53 -04:00
Simon Kornblith
c2d32c2e27
Just give up on trying to automate the panel itself
2015-03-09 16:49:50 -04:00
Simon Kornblith
c7c58f8343
Add support function to reset the DB and a test that it works.
2015-03-09 14:25:49 -04:00
Simon Kornblith
b6673511f7
Close recognizePDF windows when tests finish
2015-03-08 19:28:33 -04:00
Simon Kornblith
299009dcd5
Add unit tests for add item by identifier and some support refactoring
...
Also adds EventUtils from MozMill to simplify UI automation.
2015-03-08 19:28:27 -04:00
Simon Kornblith
218917f367
Add unit test for PDF recognition without DOI
2015-03-08 16:20:57 -04:00
Simon Kornblith
3f0f7af71a
Add unit test for PDF recognition with DOI
...
Also some support code that was useful here and will probably be
useful for other tests. This is a pretty complicated thing to test, but
it seems to work.
2015-03-08 16:02:10 -04:00
Simon Kornblith
50cd396918
Make debugging tests a bit easier
...
- Add command-line argument to enable debug logging
- Add command-line argument to open (and leave open) jsconsole
- Try to print error stack traces (although Mocha doesn't seem to like
them?)
2015-03-07 22:17:44 -05:00
Simon Kornblith
1c32db68da
Unit testing infrastructure
...
Implements the beginnings of unit testing infrastructure using
mocha/chai. The unit tests can be run locally using test/runtests.sh,
although this will need tweaks to run on Windows. They should also run
on commit using Travis-CI.
The unit tests themselves live in test/tests. The index.js file
specifies separate test sets, which can be run individually by calling
test/runtests.sh <testsets>. Right now there is only a single unit
test, but hopefully we'll have more soon...
2015-03-07 16:34:55 -05:00