summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #51 from spacewander/patch-1HEADmasterPeter Melnichenko2016-10-071-0/+1
|\ | | | | Add luacov-console
| * Add luacov-console罗泽轩2016-10-071-0/+1
| |
* | Use latest hererocks on appveyor [ci skip]Peter Melnichenko2016-10-071-1/+1
|/
* 0.12.0 releasePeter Melnichenko2016-06-2914-73/+531
|
* Convert statsfile and reportfile paths to absolute on config loadPeter Melnichenko2016-06-291-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 errorPeter Melnichenko2016-06-291-0/+1
|
* Add luacov.util to the default exclusion listPeter Melnichenko2016-06-291-0/+1
|
* Use the new util functions in luacov.reporterPeter Melnichenko2016-06-291-8/+4
|
* Switch one of test configs to the new formatPeter Melnichenko2016-06-291-3/+1
|
* Allow setting globals in config to set optionsPeter Melnichenko2016-06-291-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 warningsPeter Melnichenko2016-06-292-4/+4
|
* Improve config loading error handlingPeter Melnichenko2016-06-293-20/+136
|
* Update scm rockspecPeter Melnichenko2016-06-291-2/+2
|
* Mention `false` as default for `tick` option.Peter Melnichenko2016-06-291-1/+1
|
* Add a test for `tick` option in configPeter Melnichenko2016-06-284-21/+37
|
* Allow setting `tick` in configPeter Melnichenko2016-06-282-0/+7
|
* Add cluacov.version to the list of default exclusionsPeter Melnichenko2016-06-281-1/+2
|
* Add :on_file_error stub methodPeter Melnichenko2016-06-261-6/+21
| | | | | Called on error when opening, reading or loading a file. Default implementation reports the error to stderr.
* Add a test for cluacovPeter Melnichenko2016-06-263-0/+23
|
* Remove fixed release rockspecsPeter Melnichenko2016-06-2610-387/+0
|
* Fix cli/nested testPeter Melnichenko2016-06-261-2/+2
|
* Add cluacov support for deepactivelinesPeter Melnichenko2016-06-182-31/+72
|
* Add cluacov support for debug hookPeter Melnichenko2016-06-171-1/+3
|
* Move debug.hook into a separate modulePeter Melnichenko2016-06-173-74/+94
|
* 0.11.0 releasempeterv2016-04-1811-100/+131
|
* Add Appveyor badge [ci skip]mpeterv2016-04-181-0/+1
|
* Fix "nested" CLI test for Windowsmpeterv2016-04-181-4/+4
|
* Add appveyor.ymlmpeterv2016-04-181-0/+21
|
* Port CLI test for Windowsmpeterv2016-04-182-13/+18
|
* Port filefilter test for Windowsmpeterv2016-04-181-3/+5
|
* Tweak a CLI test to test how missed lines are reportedmpeterv2016-04-182-10/+12
|
* Don't install LuaRocks on Travis-CImpeterv2016-04-181-1/+1
|
* LDoc fixesmpeterv2016-04-181-0/+3
|
* Update CLI help messagempeterv2016-04-181-12/+14
|
* Add runner.version fieldmpeterv2016-04-181-0/+1
|
* Avoid an empty line in report when there are no filesmpeterv2016-04-181-7/+1
|
* Accumulate new coverage instead of storing all of itmpeterv2016-04-172-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 ordermpeterv2016-04-171-14/+18
| | | | | Helps comparing stats when debugging. Also some more minor luacov.stats fixes.
* Don't increment tick counter for lines from ignored filesmpeterv2016-04-171-11/+11
|
* Change default reporter output formatmpeterv2016-04-178-99/+165
| | | | | | * Don't use tabs. * Avoid trailing whitespace. * Format summary using a nice table.
* Change luacov.stats to take statsfile path as argumentmpeterv2016-04-173-13/+10
|
* Fix Luacheck warnings, add .luacheckrcmpeterv2016-04-175-14/+20
|
* Remove obsolete reporter examplempeterv2016-04-171-53/+0
| | | | luacov.reporter docs provide enough info.
* Fix luacov.tickmpeterv2016-04-173-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 executionmpeterv2016-04-176-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 itmpeterv2016-04-172-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}`mpeterv2016-04-172-1/+14
|
* Fix line filtering for `local x = (`mpeterv2016-04-172-0/+6
|
* Fix line filtering for `{},`mpeterv2016-04-172-0/+2
|
* Fix line filtering for simple single line expressionsmpeterv2016-04-172-2/+39
|