Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #51 from spacewander/patch-1HEADmaster | Peter Melnichenko | 2016-10-07 | 1 | -0/+1 |
|\ | | | | | Add luacov-console | ||||
| * | Add luacov-console | 罗泽轩 | 2016-10-07 | 1 | -0/+1 |
| | | |||||
* | | Use latest hererocks on appveyor [ci skip] | Peter Melnichenko | 2016-10-07 | 1 | -1/+1 |
|/ | |||||
* | 0.12.0 release | Peter Melnichenko | 2016-06-29 | 14 | -73/+531 |
| | |||||
* | Convert statsfile and reportfile paths to absolute on config load | Peter Melnichenko | 2016-06-29 | 1 | -0/+43 |
| | | | | | | | | | | | | | If a program using LuaCov changes its directory, particularly if it uses `luacov.tick`, stats may be partially saved relatively to one of intermediate current directories instead of the starting one. The fix is to convert paths in config to absolute on load. `pwd` (`cd` on Windows) is used to get current directory, so, no dependency on lfs is introduced. Older versions of LuaCov opened statsfile on config load, which avoids this problem. | ||||
* | Exit with 1 on config loading error | Peter Melnichenko | 2016-06-29 | 1 | -0/+1 |
| | |||||
* | Add luacov.util to the default exclusion list | Peter Melnichenko | 2016-06-29 | 1 | -0/+1 |
| | |||||
* | Use the new util functions in luacov.reporter | Peter Melnichenko | 2016-06-29 | 1 | -8/+4 |
| | |||||
* | Switch one of test configs to the new format | Peter Melnichenko | 2016-06-29 | 1 | -3/+1 |
| | |||||
* | Allow setting globals in config to set options | Peter Melnichenko | 2016-06-29 | 1 | -10/+11 |
| | | | | | | | | | | | | | Switch to a common config format using assignments to globals. E.g. return {statsfile = "foo"} becomes statsfile = "foo" Old format (returning a table) is still supported but has lower priority on conflicts. | ||||
* | .luacheckrc: change `std` to minimal, fix warnings | Peter Melnichenko | 2016-06-29 | 2 | -4/+4 |
| | |||||
* | Improve config loading error handling | Peter Melnichenko | 2016-06-29 | 3 | -20/+136 |
| | |||||
* | Update scm rockspec | Peter Melnichenko | 2016-06-29 | 1 | -2/+2 |
| | |||||
* | Mention `false` as default for `tick` option. | Peter Melnichenko | 2016-06-29 | 1 | -1/+1 |
| | |||||
* | Add a test for `tick` option in config | Peter Melnichenko | 2016-06-28 | 4 | -21/+37 |
| | |||||
* | Allow setting `tick` in config | Peter Melnichenko | 2016-06-28 | 2 | -0/+7 |
| | |||||
* | Add cluacov.version to the list of default exclusions | Peter Melnichenko | 2016-06-28 | 1 | -1/+2 |
| | |||||
* | Add :on_file_error stub method | Peter Melnichenko | 2016-06-26 | 1 | -6/+21 |
| | | | | | Called on error when opening, reading or loading a file. Default implementation reports the error to stderr. | ||||
* | Add a test for cluacov | Peter Melnichenko | 2016-06-26 | 3 | -0/+23 |
| | |||||
* | Remove fixed release rockspecs | Peter Melnichenko | 2016-06-26 | 10 | -387/+0 |
| | |||||
* | Fix cli/nested test | Peter Melnichenko | 2016-06-26 | 1 | -2/+2 |
| | |||||
* | Add cluacov support for deepactivelines | Peter Melnichenko | 2016-06-18 | 2 | -31/+72 |
| | |||||
* | Add cluacov support for debug hook | Peter Melnichenko | 2016-06-17 | 1 | -1/+3 |
| | |||||
* | Move debug.hook into a separate module | Peter Melnichenko | 2016-06-17 | 3 | -74/+94 |
| | |||||
* | 0.11.0 release | mpeterv | 2016-04-18 | 11 | -100/+131 |
| | |||||
* | Add Appveyor badge [ci skip] | mpeterv | 2016-04-18 | 1 | -0/+1 |
| | |||||
* | Fix "nested" CLI test for Windows | mpeterv | 2016-04-18 | 1 | -4/+4 |
| | |||||
* | Add appveyor.yml | mpeterv | 2016-04-18 | 1 | -0/+21 |
| | |||||
* | Port CLI test for Windows | mpeterv | 2016-04-18 | 2 | -13/+18 |
| | |||||
* | Port filefilter test for Windows | mpeterv | 2016-04-18 | 1 | -3/+5 |
| | |||||
* | Tweak a CLI test to test how missed lines are reported | mpeterv | 2016-04-18 | 2 | -10/+12 |
| | |||||
* | Don't install LuaRocks on Travis-CI | mpeterv | 2016-04-18 | 1 | -1/+1 |
| | |||||
* | LDoc fixes | mpeterv | 2016-04-18 | 1 | -0/+3 |
| | |||||
* | Update CLI help message | mpeterv | 2016-04-18 | 1 | -12/+14 |
| | |||||
* | Add runner.version field | mpeterv | 2016-04-18 | 1 | -0/+1 |
| | |||||
* | Avoid an empty line in report when there are no files | mpeterv | 2016-04-18 | 1 | -7/+1 |
| | |||||
* | Accumulate new coverage instead of storing all of it | mpeterv | 2016-04-17 | 2 | -57/+32 |
| | | | | | | | | | | | | | | | | Instead of loading all stats at start, updating them gradually and saving at the end, accumulate new stats; then, when saving, load old stats, add new stats to them, save the sum. This means that stats saving/loading is much more "atomic": luacov doesn't care at all if another instance updates the stats file, unless they happen to try to save stats at the same time. That can't happen in the most common case when parent Lua with luacov enabled starts another one using os.execute. Even with luacov.tick parent may only save after the child exits. luacov.pause and luacov.resume are now only needed for pausing stats saving, which may be useful for performance when using luacov.tick. | ||||
* | Save stats in sorted order | mpeterv | 2016-04-17 | 1 | -14/+18 |
| | | | | | Helps comparing stats when debugging. Also some more minor luacov.stats fixes. | ||||
* | Don't increment tick counter for lines from ignored files | mpeterv | 2016-04-17 | 1 | -11/+11 |
| | |||||
* | Change default reporter output format | mpeterv | 2016-04-17 | 8 | -99/+165 |
| | | | | | | * Don't use tabs. * Avoid trailing whitespace. * Format summary using a nice table. | ||||
* | Change luacov.stats to take statsfile path as argument | mpeterv | 2016-04-17 | 3 | -13/+10 |
| | |||||
* | Fix Luacheck warnings, add .luacheckrc | mpeterv | 2016-04-17 | 5 | -14/+20 |
| | |||||
* | Remove obsolete reporter example | mpeterv | 2016-04-17 | 1 | -53/+0 |
| | | | | luacov.reporter docs provide enough info. | ||||
* | Fix luacov.tick | mpeterv | 2016-04-17 | 3 | -3/+5 |
| | | | | | | | | | | | | | | luacov.runner.init used package.loaded["luacov.tick"] to determine whether it should save stats from time to time. luacov.tick module used to set that field implicitly because it called module(). In @8872071 (Oct 2012) module() call was removed, leaving luacov.tick broken. Incidentally that always enabled on-exit gc hooks, so the problem was not visible unless Lua somehow exited without calling them. The fix is to use runner.tick field instead of package.loaded for storing the flag. | ||||
* | Add a test for nested luacov execution | mpeterv | 2016-04-17 | 6 | -0/+82 |
| | | | | | | TODO: fix luacov.tick not working since 2012 or so when `module` calls (that set package.loaded earlier than `require`) were removed. | ||||
* | Don't clear statsfile after loading from it | mpeterv | 2016-04-17 | 2 | -25/+5 |
| | | | | | | | | Don't drop old stats if the program crashes without triggering exit hooks after loading. TODO: convert stats file name to absolute on config load so that changing directories doesn't break stats saving. | ||||
* | Fix line filtering for `const}` | mpeterv | 2016-04-17 | 2 | -1/+14 |
| | |||||
* | Fix line filtering for `local x = (` | mpeterv | 2016-04-17 | 2 | -0/+6 |
| | |||||
* | Fix line filtering for `{},` | mpeterv | 2016-04-17 | 2 | -0/+2 |
| | |||||
* | Fix line filtering for simple single line expressions | mpeterv | 2016-04-17 | 2 | -2/+39 |
| |