Skip to content

Commit a28b7c5

Browse files
committed
Tests UC_[101,102,200,201,202] & Open_90 fixed
1 parent b1958a4 commit a28b7c5

File tree

12 files changed

+4460
-106
lines changed

12 files changed

+4460
-106
lines changed

APLSource/Cider/History.apla

Lines changed: 1 addition & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
' * License issues fixed'
66
' * Bug fixes'
77
' * #125'
8+
' * Test_UC_[100,101,200,201,202] fixed (_OK was niot assigned when it should)'
89
'* 0.48.3 ⋄ 2025-08-09'
910
' * Packages updated (APLProcess!)'
1011
'* 0.48.2 ⋄ 2025-07-12'
@@ -211,107 +212,4 @@
211212
' * `CloseProject` might have carried out unnecessary check functions'
212213
' * The user commands `AddTatinPackages` and `AddNuGetPackages` crashed when no project was specified and "q" (for "quit")'
213214
' was entered instead of selecting one of multiple currently opened projects '
214-
'* 0.39.0 ⋄ 2024-01-25'
215-
' * NuGet interface improved (tx Alexander Block)'
216-
' * New global config parameter introduced: `AskForDirChange`'
217-
' * New global config parameter introduced: `ReportGitStatus` '
218-
' * The config property "tatinVars", when present, was used to establish which sub-namspace of a project'
219-
' would eventually become a package. This was used in order to inject the namespace `TatinVars` into that'
220-
' sub-namespace rather than the root of the project.'
221-
' Now Cider always injects `TatinVars` into the root of the project, but in addition it establishes a '
222-
' reference `TatinVars` in the sub-namespace defined by "tatinVars" pointing to `TatinVars` in the root of'
223-
' the project. '
224-
' * Bug fixes'
225-
' * `]packageConfig -edit` did not update the workspace (`TatinVars`) '
226-
' * OpenProject crashed when [?] was specified as argument but no aliases were defined'
227-
' * `InjectTatinVars` did not check whether "tatinVars", when available and not empty, points to a '
228-
' sub-namespace of the project''s root'
229-
'* 0.38.0 ⋄ 2023-12-17'
230-
' * BREAKING CHANGE: API function `GetAliasFileContent` renamed: `GetCiderAliasFileContent`'
231-
' * Optional property `tatinVars` added to the Cider config file and `InjectTatinVars` changed accordingly'
232-
' * `CheckTargetNamespaceAndLinkFolder` improved in terms of error messages and better questions '
233-
' * Documentation improved'
234-
' * New version of FilesAndDirs integrated which addresses the problem that RmDirByForce with ''/..'' dir not'
235-
' work on Linux and Mac OS.'
236-
' * Bug fix in `InjectTatinVars`: TatinVars was injected into the project root rather than the package root'
237-
'* 0.37.5 ⋄ 2023-11-07'
238-
' * Bug fixes'
239-
' * The user command ]UpdateCider signalled a VALUE ERROR in case it updated Cider sucessfully: missing explicit result.'
240-
'* 0.37.4 ⋄ 2023-10-13'
241-
' * Bug fixes'
242-
' * When attempting to open a package with NuGet dependencies in Dyalog priot 19.0 Cider kept silent over '
243-
' the fact that such a version does not support NuGet. It now prints a message to the session.'
244-
' * Reloading Tatin packages after using `AddTatinDependencies` sometimes failed.'
245-
' * ListTatinPackages now prints "No dependencies found" to the session rather than returning an empty matrix.'
246-
'* 0.37.3 ⋄ 2023-10-10'
247-
' * Installation folder was missing the `SessionExtensions` level'
248-
'* 0.37.2 ⋄ 2023-10-08'
249-
' * In the documentation the function `LoadCider` was wrong: no left argument (1) was passed to `GetProgramFilesFolder`'
250-
' * `OpenProject` did not give any feedback if no argument was specfied, no aliases were defined and the current dir is not a project folder'
251-
'* 0.37.1 ⋄ 2023-10-07'
252-
' * Bug fix in `]Cider.UpdateCider` '
253-
' * Documentation regarding the installation and upgrading procedure corrected'
254-
' * `Make` amended'
255-
'* 0.37.0 ⋄ 2023-10-03'
256-
' * `]AddTatinDependencies` now loads the added dependencies as well'
257-
' * Bug fixes'
258-
' * `AddTatinDependencies` prints now better mesages to the session'
259-
' * `GetCiderGlobalConfigFileContent` is now more robust and reports better messages'
260-
' * Deleting everything in the editor window when a new project is about to be created should'
261-
' have been treated as "cancel the process" but wasn''t'
262-
'* 0.36.0 ⋄ 2023-09-23'
263-
' * Documentation now in line with latest changes to the installatin routine'
264-
'* 0.35.0 ⋄ 2023-09-22'
265-
' * User commands implemented:'
266-
' * `]Cider.AddTatinDependencies`'
267-
' * `]Cider.AddNuGetDependencies`'
268-
' * `]Cider.ListTatinDependencies`'
269-
' * `]Cider.ListNuGetDependencies`'
270-
' * API equivalents for the newly introduced user commands implemented: `AddTatinDependencies`, '
271-
' `AddNuGetDependencies`, `ListTatinDependencies`, `ListNuGetDependencies`'
272-
' * `OpenProject` now loads NuGet dependencies, if any'
273-
' * The default of `checkPackageVersions` in `CreateOpenParms` is now 0, preventing the API function from'
274-
' asking the user. (The user command `OpenProject` will asign `⍬` however)'
275-
' * `]Cider.UpdateCider` added as a user command, though the corresponding API function is still missing'
276-
' * Bug fixes:'
277-
' * There were refs missing in the user command script in case of DEVELOPMENT←1'
278-
'* 0.34.0 ⋄ 2023-09-14'
279-
' * `OpenProject` does not report anymore anything but serious stuff and final success to `⎕SE`, but watch '
280-
' out for the global config parameter `verbose` and the user command flags `-verbose` and `-batch`'
281-
' * `OpenProject`s `quiet` flag has been retired'
282-
' * `OpenProject` has now a parameter `verbose` & `batch`; the latter is for tests & build procedures etc'
283-
' * `]OpenProject` has now a -verbose flag and a `-batch` flag'
284-
' * Cider honours a variable `verbose` in its global configuration file. By default no such file exists,'
285-
' meaning that the default is 0. If it does exist it might or might nor carry `verbose`. '
286-
' * Cider deletes Link-specific vars in its config file that equal their defaults anyway'
287-
' * Under rare circumstances `]Cider.Help` produced an error ("File not found") rather than showing the help'
288-
'* 0.33.0 ⋄ 2023-09-05'
289-
' * `Cider` is now an ordinary namespace rather than a class script.'
290-
' * `LoadTatinPackages` now reports the URL the packages were loaded from, but only if they were loaded'
291-
' from more than one place.'
292-
'* 0.32.0 ⋄ 2023-08-25'
293-
' * `APLGit2` is now part of `Cider` and therefore always available'
294-
' * Bug fixes'
295-
' * The function `GetCiderGlobalConfigHomeFolder` crashed when Cider was not properly installed'
296-
' * Loading Tatin packages did not act appropriately when there were packages installed but they'
297-
' did not fit to the dependency list and/or the build list'
298-
' * Inconsistencies between the build list and the dependency file were not discovered. Now Cider'
299-
' does a re-install if the user permits that.'
300-
' * It was possible to load a package and then open it as a project; this is now prevented'
301-
'* 0.31.1 ⋄ 2023-08-05'
302-
' * Version 0.30.0 wrongly pretended to be a beta release when it wasn''t'
303-
'* 0.31.0 ⋄ 2023-08-04'
304-
' * Step added to `OpenProject`: checks for a non-empty variable `ToDo` in the root of the project now'
305-
' * When Cider is asked for "Make" it checks for a variable `ToDo` now and reports its findings'
306-
' * In case the user function `ExecuteAfterProjectOpen` is causing trouble the error message is more'
307-
' prominently emphasized now.'
308-
' * The newly introduced flag `ignoreUserExec` can be used to prevent the execution of the user function'
309-
' by a particular call of `OpenProject`'
310-
'* 0.30.1 ⋄ 2023-07-23'
311-
' * Bug fix in `CheckForTatinPackages`'
312-
'* 0.30.0 ⋄ 2023-07-07'
313-
' * Without a parameter, OpenProject now offers all aliases for selection'
314-
' * When `make` and/or `test` point to an APL object no error is thrown anymore. Instead a warning'
315-
' is issued.'
316-
' * Bug fix: new projects got a parameter `githubUsername` injected which is not used anymore'
317215
)

APLSource/TestCases/Test_Open_090.aplf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
#.⎕SHADOW'TEMP' ⋄ 'TEMP'#.⎕NS''
77
parms←##.Cider.CreateOpenParms ⍬
8-
parms.folder←##.CiderConfig.HOME,'\TestData\LxProject'
8+
parms.folder←##.CiderConfig.HOME,'/TestData/LxProject'
99
parms.parent←'#.TEMP'
1010
##.Cider.C.AddAutomation'YesOrNo' 'ExecLX@' 'y'
1111
(success log)←##.Cider.OpenProject parms

APLSource/TestCases/Test_UC_100.aplf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@
1414
ns←##.Cider.Get_JSON5 #.Cider.CiderConfig.HOME,'/cider.config'
1515
expected←FilesAndDirs.EnforceSlash∘FilesAndDirs.AddTrailingSep¨{⍵↑⍨¯1+⍵⍳'='}¨ns.CIDER.(dependencies dependencies_dev).tatin
1616
→T.PassesIf∧/expected∊res[;1]
17+
R←T._OK
1718

1819
⍝Done

APLSource/TestCases/Test_UC_101.aplf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
→T.GoToTidyUp~∧/res[;1]∊0 1
2222
→T.GoToTidyUp~∧/res[;1]∊0 1
2323
→T.GoToTidyUp~∧/{2≤⍵+.='-'}¨res[;2]
24+
R←T._OK
2425

2526
∆TidyUp:
2627
#.Cider.Cider.CommTools.Cleanup

APLSource/TestCases/Test_UC_200.aplf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@
99
:If ~∨/'Not found:'⍷∊res
1010
→T.PassesIf∨/'*** Link config file'⍷∊res
1111
:EndIf
12+
R←T._OK
1213
⍝Done

APLSource/TestCases/Test_UC_201.aplf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
json←⊃⎕NGET tempDir,'/Boo-Project/APLSource/.linkconfig'
2121
ns←⎕JSON⍠('Dialect' 'JSON5')⊢json
2222
→T.GoToTidyUp 2≠ns.CiderTest
23+
R←T._OK
2324

2425
∆TidyUp:
2526
ref.Cleanup

APLSource/TestCases/Test_UC_202.aplf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
(rc msg res)←stop ∆UCMD'LinkConfig ',tempDir,'/Boo-Project -delete'
1515
Assert rc=0
1616
→T.GoToTidyUp 0≠⎕NEXISTS tempDir,'/Boo-Project/APLSource/.linkconfig'
17+
R←T._OK
1718

1819
∆TidyUp:
1920
ref.Cleanup

TestResults/CodeCoverage.cr

382 KB
Binary file not shown.

0 commit comments

Comments
 (0)