Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
8e9c271
Added in a python method that calls sys.settrace and stores the resul…
isc-cge Jun 24, 2024
b9845f8
Got rid of the extra argument in PyStartWithCoverage
isc-cge Jun 27, 2024
d591894
Added a way to hash .PY files in CodeUnit.GetCurrentHash()
isc-cge Jun 27, 2024
d0ce282
Added code to find what lines in a python file are executable, and se…
isc-cge Jun 28, 2024
e9860ce
Finished GetCurrentByName and UpdateSourceMap: GetCurrentByName now s…
isc-cge Jul 1, 2024
baf4f70
Wrote code that successfully saves the line monitoring into ^IRIS.TEM…
isc-cge Jul 2, 2024
91af8be
Meant to be included with the previous commit
isc-cge Jul 2, 2024
7570938
Storing the sys.settrace data as an array indexed by class name, and …
isc-cge Jul 2, 2024
642b813
Wrote the HasPython Method
isc-cge Jul 2, 2024
8300839
Addendum to previous commit: previously, also made the call in EndCov…
isc-cge Jul 3, 2024
d6b81ca
Fetch the executable lines for the python methods in .cls files; whol…
isc-cge Jul 3, 2024
58f1059
Merge branch 'master' of https://github.com/intersystems/TestCoverage…
isc-cge Jul 5, 2024
96098b8
Changed global name from IRIS.TEMPCJG to IRIS.TEMP.TestCoveragePY
isc-cge Jul 5, 2024
f2b21bd
Manually set the python class method definition lines to not executable
isc-cge Jul 5, 2024
6837c62
Added the source code lines in to the .py CodeUnits
isc-cge Jul 5, 2024
bcd58fa
Added cyclomatic complexities for python subunits
isc-cge Jul 5, 2024
040e56a
Cleaned up code with the old method of storing monitor results in PyM…
isc-cge Jul 8, 2024
cc3700d
Added unit tests for Python CodeUnit and embedded python in .CLS files
isc-cge Jul 8, 2024
5e5ca7e
Added a test to make sure the embedded python methods' complexities a…
isc-cge Jul 8, 2024
d2e3ac5
Cleaned up a bit of dead code in CodeUnit and commented a lot of code
isc-cge Jul 8, 2024
793046f
Edited changelog and module.xml
isc-cge Jul 8, 2024
35c1192
fix: classes with only embedded python files are now covered
isc-cge Jul 12, 2024
3c54cd8
merged changes from 3.1.0
isc-cge Jul 12, 2024
d30dcdf
Merged CoverageTargetsWhitespace branch
isc-cge Jul 15, 2024
1e0f4e4
style: addressed Tim's comments on pr 37 (and simplified the sql stat…
isc-cge Jul 15, 2024
08e9902
fix: testcoveragelist doesn't fail if FindCoverageList doesn't find s…
isc-cge Jul 15, 2024
eb6077f
feat: the python monitor results now store Rtnline metrics, and in a …
isc-cge Jul 16, 2024
4ef2261
fix: changed pSizeHint to tSizeHint
isc-cge Jul 17, 2024
d07947e
style: cleaned up some dead code
isc-cge Jul 17, 2024
db53aa9
style: cleaned up some dead code
isc-cge Jul 17, 2024
10f4e2d
Merge branch 'EmbeddedPython' of https://github.com/intersystems/Test…
isc-cge Jul 18, 2024
c4c0164
feat: initialized all metrics to 0 so that none are empty at the end
isc-cge Jul 19, 2024
4963be8
feat: added a property LineIsPython that stores if each line of code …
isc-cge Jul 22, 2024
b1cd1b9
style: removed debugging global
isc-cge Jul 22, 2024
2854c18
style: changed IRIS.TEMP to IRIS.Temp
isc-cge Jul 22, 2024
a0221c2
Merge branch 'master' of https://github.com/intersystems/TestCoverage…
isc-cge Jul 29, 2024
9a2da9b
feat: added listener interface and manager with broadcasting on test …
isc-cge Jul 30, 2024
9f7b9cb
feat: changed the broadcast message type from strig to json
isc-cge Jul 31, 2024
d6b3079
style: added in a broadcast for starting tests too
isc-cge Jul 31, 2024
0161e47
Merge branch 'OutputTracking' into EmbeddedPython
isc-cge Jul 31, 2024
25ae6b1
docs: edited changelog
isc-cge Jul 31, 2024
410b2bf
merged PR 42
isc-cge Jul 31, 2024
abcd54c
Merge PR 41
isc-cge Jul 31, 2024
73119cf
Merge branch 'OutputTracking' into EmbeddedPython
isc-cge Jul 31, 2024
05300c6
docs: fixed changelog.md again
isc-cge Jul 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.2.0] - Unreleased

### Added
- #29: Track code coverage for embedded python methods in .cls files
- #42: Added a listener interface and manager with an associated user parameter, allowing the user to broadcast output on test method/case/suite completion.

## [3.1.1] - 2024-07-31

Expand Down
7 changes: 6 additions & 1 deletion cls/TestCoverage/Data/CodeSubUnit.cls
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ Property Mask As TestCoverage.DataType.Bitstring;
/// Cyclomatic complexity of the code subunit
Property Complexity As %Integer [ InitialExpression = 1 ];

/// 1 if it's a python class method, 0 if not
Property IsPythonMethod As %Boolean;

Method UpdateComplexity() As %Status
{
Quit $$$OK
Expand All @@ -26,6 +29,9 @@ Storage Default
<Value name="3">
<Value>Complexity</Value>
</Value>
<Value name="4">
<Value>IsPythonMethod</Value>
</Value>
</Data>
<DataLocation>{%%PARENT}("SubUnits")</DataLocation>
<DefaultData>CodeSubUnitDefaultData</DefaultData>
Expand All @@ -36,4 +42,3 @@ Storage Default
}

}

Loading
Loading