Commit graph

229 commits

Author SHA1 Message Date
Alan Hamlett
27e2d13788 Ability to only track folders containing a .wakatime-project file 2018-01-04 23:24:19 -08:00
Alan Hamlett
4c7b49a28c Expect bulk results under responses key 2017-11-24 16:10:15 -08:00
Alan Hamlett
c6a5bf4086 expect correct exception class for py3 2017-11-23 12:30:29 -08:00
Alan Hamlett
0ca8a936db improve test coverage for git submodules 2017-11-23 12:26:57 -08:00
Alan Hamlett
1d57270daf improve test coverage for stats module 2017-11-23 10:39:31 -08:00
Alan Hamlett
75aebc5b24 test exceptions handled on commit and close 2017-11-23 10:00:01 -08:00
Alan Hamlett
cb2ca39832 improve java dependency test coverage 2017-11-23 09:48:14 -08:00
Alan Hamlett
40c8a53019 handle null extra heartbeats 2017-11-23 09:25:30 -08:00
Alan Hamlett
28cb3e2b28 unit tests for heartbeat class 2017-11-22 19:29:04 -08:00
Alan Hamlett
8269196c88 improve test coverage for parsing api bulk results 2017-11-22 18:54:47 -08:00
Alan Hamlett
9ffb677f9d Make sure any leftover heartbeats not accepted by API are saved 2017-11-22 18:34:15 -08:00
Alan Hamlett
aa58524f66 refactor handling server responses 2017-11-22 14:01:02 -08:00
Alan Hamlett
019b97dfe7 remove unused test 2017-11-22 13:19:39 -08:00
Alan Hamlett
7b09f8f0c6 support unicode heartbeats in offline cache 2017-11-22 12:58:29 -08:00
Alan Hamlett
cbd67fb73c parse response from bulk endpoint, only saving unsent heartbeats to offline cache 2017-11-09 09:03:27 -08:00
Alan Hamlett
2b2c48b2d7 use newer bulk endpoint with current user in path 2017-11-09 07:31:28 -08:00
Alan Hamlett
4a0dd27d25 enable bulk api endpoint 2017-11-08 22:54:33 -08:00
Alan Hamlett
a286f3ee5e test for #106 2017-11-07 18:52:30 -08:00
Alan Hamlett
5c72c331f9 add empty git submodules disabled config 2017-11-04 11:56:22 -07:00
Alan Hamlett
06a9d651db support for git submodules 2017-11-04 11:48:49 -07:00
Alan Hamlett
3992bec062 fix tests on python3 2017-10-31 09:06:52 -07:00
Alan Hamlett
e0fa82e2c9 prevent sending dependencies when hiding file names 2017-10-31 08:57:30 -07:00
Alan Hamlett
6cd300a30b use WAKATIME_HOME env variable for session and offline caching 2017-10-29 11:16:23 -07:00
Alan Hamlett
b828542a08 allow passing all string arguments wrapped in extra quotes 2017-10-23 21:54:21 -07:00
Alan Hamlett
87f205484f Improve Matlab language detection 2017-06-07 23:32:03 -07:00
Alan Hamlett
75584423b2 test ntlm proxy used after requests exception 2017-05-24 23:07:12 -07:00
Alan Hamlett
ccf5e39f44 only use NTLM proxy after trying non-NTLM proxy 2017-05-24 22:54:58 -07:00
Alan Hamlett
75e3d5e7fb sample project map with index error should support windows path separator 2017-05-21 17:34:51 -07:00
Alan Hamlett
f8f6a93bd8 sample project map paths should support windows path separator 2017-05-21 17:33:39 -07:00
Alan Hamlett
413dad06ff SVN project detection not supported on Windows because opens too many pythonw.exe cmd windows 2017-05-21 17:29:06 -07:00
Alan Hamlett
f23b9cd9ef Windows cannot clean up tempdir if subfile still open 2017-05-21 17:09:27 -07:00
Alan Hamlett
fac3db034f force logfile location to prevent test side-effects 2017-05-21 17:07:32 -07:00
Alan Hamlett
e6e07a017d pass unicode path to listdir to get back unicode filenames 2017-05-21 16:42:05 -07:00
Alan Hamlett
5fc0fdf067 logfile in config causes problems when testing 2017-05-21 16:22:18 -07:00
Alan Hamlett
9da0163c1a wrap NamedTemporaryFile for Windows testing support 2017-05-21 15:58:48 -07:00
Alan Hamlett
2ade22b7be call setUp method from parent util class 2017-05-21 15:11:06 -07:00
Alan Hamlett
6325bd3c35 SessionCache tests depend on logging already being setup 2017-05-21 15:06:39 -07:00
Alan Hamlett
8bbfd775dd add missing test config file 2017-05-05 17:23:26 -07:00
Alan Hamlett
6f2176741d Ability to disable SSL cert verification
Adds a --no-ssl-verify argument.
Adds a no_ssl_verify boolean config option.
2017-05-05 17:09:17 -07:00
Alan Hamlett
149ab8d00e disable lines count for files larger than 2MB 2017-04-19 23:05:40 -07:00
Alan Hamlett
c22990a38a config file not needed when passing api key via command line 2017-03-16 08:10:15 -07:00
Alan Hamlett
62923d4ca0 F# takes priority over Forth language 2017-03-04 13:42:44 -08:00
Alan Hamlett
50141ef7b9 use configparser from py3.5 so we can set delimiters to only equal char to fix #83 2017-03-04 10:07:00 -08:00
Alan Hamlett
8c2685696c ability to prioritize popular languages over uncommon languages 2017-02-26 17:05:55 -08:00
Alan Hamlett
9ce9d528fd detect non-C languages in folders with C/C++ files
Improves on 2da75aa119.
2017-02-26 16:26:39 -08:00
Alan Hamlett
da3cf30ddd use language as extra heartbeats key name 2017-02-20 15:29:44 -08:00
Alan Hamlett
35726f2e91 rename --alternate-language to --language 2017-02-20 15:17:45 -08:00
Alan Hamlett
f52847d7e9 make --alternate-language cli argument take precedence over detected language 2017-02-20 14:23:02 -08:00
Alan Hamlett
4ea96210f8 give TypeScript higher priority than TypoScript 2017-02-20 13:22:14 -08:00
Alan Hamlett
fad721530a use alternate language if case-insensitive matches a language in the json files 2017-02-20 12:40:24 -08:00
Alan Hamlett
c5531312da refactor main into multiple files 2017-02-20 12:04:07 -08:00
Alan Hamlett
f283f79880 fix tests on py3.5 and lower 2017-02-16 12:47:02 -08:00
Alan Hamlett
9c45df622a autocommit transactions to sqlite db in python 3.6+ 2017-02-16 12:46:04 -08:00
Alan Hamlett
62dfdc7993 add test for --hidefilenames arg 2017-02-15 15:34:13 -08:00
Alan Hamlett
fdba83a1c7 improve test coverage over invalid arguments 2017-02-15 15:28:53 -08:00
Alan Hamlett
6b7f06e3b2 escape backslash in test string 2017-02-15 15:06:53 -08:00
Alan Hamlett
1fd6169f53 support for ntlm proxy 2017-02-15 15:02:05 -08:00
Alan Hamlett
fd6f5779d4 upgrade pygments to v2.2.0 2017-02-13 23:25:51 -08:00
Alan Hamlett
7f198639aa allow list of regex patterns for hiding file names 2017-02-01 23:31:30 -08:00
Alan Hamlett
d8f0968c1a allow setting home folder from WAKATIME_HOME env variable 2016-10-24 11:10:36 +02:00
Alan Hamlett
92d8960250 imporove debug warning message from unsupported dependency parser 2016-10-16 10:50:40 +02:00
Alan Hamlett
d4eeedbacc return custom exit status from missing api key 2016-10-11 09:51:34 +02:00
Alan Hamlett
bcbf9e869f test --write with verbose flag on 2016-09-01 12:47:54 +02:00
Alan Hamlett
b5201f16fa test --write cli argument 2016-09-01 11:56:51 +02:00
Alan Hamlett
fd322ba3b6 improve traceback logging and non-utf8 handling 2016-09-01 11:49:12 +02:00
Alan Hamlett
666f29147e test 500 error when sending offline heartbeats 2016-09-01 00:08:21 +02:00
Alan Hamlett
c20fa5c39b auth error on last offline heartbeat 2016-08-31 23:22:50 +02:00
Alan Hamlett
048228c0b6 prevent dict ordering from breaking tests 2016-08-31 22:50:21 +02:00
Alan Hamlett
4ddf48905a fix tests on python 3 2016-08-31 22:45:49 +02:00
Alan Hamlett
9c5b31ce04 improve test coverage for main module 2016-08-31 22:37:02 +02:00
Alan Hamlett
7bf637a42e test requests and tzlocal exceptions 2016-08-31 21:46:28 +02:00
Alan Hamlett
17c7808218 test excluding files from logging 2016-08-31 19:38:55 +02:00
Alan Hamlett
6d36882d45 test missing --entity argument 2016-08-31 18:58:34 +02:00
Alan Hamlett
6fec24502e test for parser module existance with missing parser class 2016-08-31 18:43:22 +02:00
Alan Hamlett
e8884ffc8e test truncating dependencies in TokenParser 2016-08-31 17:42:40 +02:00
Alan Hamlett
3dd5e12d06 prevent logging __future__ python dependency 2016-08-31 17:30:49 +02:00
Alan Hamlett
694205ebee remove unused python token parser method 2016-08-31 17:13:25 +02:00
Alan Hamlett
beca130634 test xcode tools detection 2016-08-31 16:25:49 +02:00
Alan Hamlett
5b14c9d5eb add missing test sample file 2016-08-31 14:51:42 +02:00
Alan Hamlett
8ef87d0393 test for index error on project map replacement regex groups 2016-08-31 14:49:01 +02:00
Alan Hamlett
c4d6bb38a1 test for unknown exceptions and malformed extra heartbeats json 2016-08-31 14:27:10 +02:00
Alan Hamlett
2e26818904 test for grunt dependency 2016-08-31 12:41:07 +02:00
Alan Hamlett
b6f2ca548a upgrade python packages to latest versions 2016-08-31 12:23:38 +02:00
Alan Hamlett
59871a8bd9 test that multiple executions don't overwrite projects 2016-07-28 09:00:58 +02:00
Alan Hamlett
5bf2c063a5 test for non-ascii filenames 2016-07-20 20:32:08 +02:00
Alan Hamlett
a5933aa2a7 handle unknown exceptions from requests library by deleting cached session object 2016-07-06 23:07:55 +02:00
Alan Hamlett
1f4eb421db make sure no errors are printed 2016-07-06 17:31:24 +02:00
Alan Hamlett
cf1711ca08 test for invalid project map regex 2016-07-06 17:30:20 +02:00
Alan Hamlett
8a205e745b add test for setting hostname in config file 2016-07-06 09:33:50 +02:00
Alan Hamlett
cacefba4c2 fix traceback logging level logic 2016-06-16 08:02:56 +02:00
Alan Hamlett
4ce1419cc8 correct namespace for pygments.lexers.ClassNotFound error 2016-06-15 21:09:40 +02:00
Alan Hamlett
23d8e7b355 upgrade pygments to v2.1.3 2016-06-13 16:41:17 +02:00
Alan Hamlett
429c61967a use temp directory for all code files in tests 2016-06-08 20:33:36 +02:00
Alan Hamlett
e918bb0997 fix tests on travis 2016-06-01 10:24:02 +02:00
Alan Hamlett
aaf49a5c22 prevent tracking git branch with detached head 2016-06-01 10:08:00 +02:00
Alan Hamlett
e4fea84b5e improve test coverage for dependency detection 2016-05-21 14:21:55 +02:00
Alan Hamlett
1e5af3fd43 support for socks proxies 2016-05-21 13:09:55 +02:00
Alan Hamlett
745049d685 remove --entitytype from help output 2016-04-29 00:01:26 +02:00
Alan Hamlett
dc1964cd80 no longer allowing entity-type url 2016-04-28 23:57:15 +02:00
Alan Hamlett
937350220e only read one line of extra heartbeats from stdin 2016-04-28 19:25:52 +02:00