Skip to content

Commit

Permalink
Bug fix in CreateListingForFnsAndOpr
Browse files Browse the repository at this point in the history
  • Loading branch information
aplteam committed Apr 8, 2023
1 parent 4ba4475 commit ed6bb8c
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 38 deletions.
5 changes: 3 additions & 2 deletions APLSource/CodeCoverage.aplc
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,13 @@

rVersion
:Access Public Shared
r'CodeCoverage' '0.10.0+52' '2023-03-23'
r'CodeCoverage' '0.10.1+52' '2023-04-08'

History
:Access Public Shared
* 0.10.1 from 2023-04-08
The `CreateListingForFnsAndOpr` function deleted the "*.cr" file when it should not have
* 0.10.0 from 2023-03-23
* New function `DeleteFiles` added for getting rid of the two reporting files create/used by `CodeCoverage`, and
optionally also of the HML file
Expand Down Expand Up @@ -622,7 +624,6 @@
:EndFor
⎕FUNTIE cr.tno
⎕DL 0.1
⎕NDELETE cr.filename

Shorten{
Expand Down
5 changes: 4 additions & 1 deletion APLSource/TestCases/Prepare.aplf
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
Prepare;testPath;testFilename;ask;answer;flag;ind
T⎕NEW Tester2 ⎕THIS
T.custom_1'Not reay yet'
T.custom_1'Not ready yet'
testPath##.CiderConfig.HOME,'/TestResults'
testFilenametestPath,'/CodeCoverage'
flag0
:If ⎕NEXISTS testPath
:If ⎕NEXISTS testFilename,'.profile'
ind('Code Coverage' 0 1)CommTools.Select'Append' 'Replace' 'Neither'
:If ind=2
CodeCoverage.DeleteFiles testFilename
:EndIf
(3=ind)/0
flag1
:If 2ind
Expand Down
10 changes: 4 additions & 6 deletions APLSource/TestCases/RunTests.aplf
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
RunTests;htmlFilename;verbose
Prepare
T.Run 1
htmlFilename1 ##.CodeCoverage.ProcessDataAndCreateReport T.codeCoverage.filename
:If 1 CommTools.YesOrNo'View CodeCoverage report?'
:If 0<T.codeCoverage
:AndIf 0 CommTools.YesOrNo'Put Code Coverage Report on display?'
verbose0 CommTools.YesOrNo'Detailed report?'
APLTreeUtils2.GoToWebPage'file://',htmlFilename
⎕DL 1
1 T.codeCoverage.DeleteFiles T.codeCoverage.filename
htmlFilenameverbose CodeCoverage.ProcessDataAndCreateReport T.codeCoverage.filename
{}APLTreeUtils2.GoToWebPage htmlFilename
:EndIf
Done
25 changes: 0 additions & 25 deletions APLSource/TestCases/Test_Misc_998.aplf

This file was deleted.

2 changes: 1 addition & 1 deletion apl-package.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ api: "CodeCoverage", assets: "", description: "Monitors which parts of an application got actually executed", documentation: "", files: "", group: "aplteam", io: 1, license: "MIT", lx: "", maintainer: "kai@aplteam.com", minimumAplVersion: "18.0", ml: 1, name: "CodeCoverage", os_lin: 1, os_mac: 1, os_win: 1, project_url: "https: //github.com/aplteam/CodeCoverage", source: "APLSource/CodeCoverage.aplc", tags: "code-coverage,test-framework,unit-tests", userCommandScript: "", version: "0.10.0+55",}
{ api: "CodeCoverage", assets: "", description: "Monitors which parts of an application got actually executed", documentation: "", files: "", group: "aplteam", io: 1, license: "MIT", lx: "", maintainer: "kai@aplteam.com", minimumAplVersion: "18.0", ml: 1, name: "CodeCoverage", os_lin: 1, os_mac: 1, os_win: 1, project_url: "https: //github.com/aplteam/CodeCoverage", source: "APLSource/CodeCoverage.aplc", tags: "code-coverage,test-framework,unit-tests", userCommandScript: "", version: "0.10.1+57",}
Expand Down
2 changes: 1 addition & 1 deletion packages_dev/apl-buildlist.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ packageID: [ "aplteam-Tester2-3.3.1", "aplteam-CommTools-1.3.0", "aplteam-CodeCoverage-0.10.0", "aplteam-APLTreeUtils2-1.1.3", "aplteam-IniFiles-5.0.3", ], principal: [ 1, 1, 1, 1, 0, ], url: [ "https://tatin.dev/", "https://localhost/", "https://localhost/", "https://tatin.dev/", "https://tatin.dev/", ],}
{ packageID: [ "aplteam-Tester2-3.3.1", "aplteam-CommTools-1.4.0", "aplteam-CodeCoverage-0.10.1", "aplteam-APLTreeUtils2-1.1.3", "aplteam-IniFiles-5.0.3", ], principal: [ 1, 1, 1, 1, 0, ], url: [ "https://tatin.dev/", "https://tatin.dev/", "https://tatin.dev/", "https://tatin.dev/", "https://tatin.dev/", ],}
Expand Down
4 changes: 2 additions & 2 deletions packages_dev/apl-dependencies.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
aplteam-APLTreeUtils2-1.1.3
aplteam-Tester2-3.3.1
aplteam-CodeCoverage-0.10.0
aplteam-CommTools-1.3.0
aplteam-CodeCoverage-0.10.1
aplteam-CommTools-1.4.0

0 comments on commit ed6bb8c

Please sign in to comment.