Prove: senza docs/ (costruzione dell'immagine) le due prove che li leggono si saltano
verifica / controlli (push) Canceled after 0s
verifica / prove (push) Canceled after 0s
verifica / installatore (push) Canceled after 0s
verifica / immagine (push) Canceled after 0s

Nell'esecuzione 449 la costruzione dell'immagine si è fermata su due prove:
InHouseAssetsTests (confronta la pila dei caratteri con docs/SPECIFICA.md) e
ScreenshotToolTests (elenca docs/schermate). Dentro l'immagine i sorgenti arrivano senza
docs/ (.dockerignore) e senza .git. Nuovo Repository.Docs, come GuideTests e
ImageContentsTests: rende la prova non conclusiva solo in quella copia; in un checkout la
prova va avanti e un percorso mancante la fa fallire. Provato togliendo docs/ e .git: le
due prove risultano ignorate; con docs/ passano.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-11-26 10:25:54 +01:00
1 parent 4a1dd94dee
commit 2d40bfe35b
3 files changed
+20 -2

No files matched your search

@@ -28,4 +28,22 @@ internal static class Repository
return Path.Combine([root, .. parts]); return Path.Combine([root, .. parts]);
} }
/// <summary>
/// A file or folder under docs/. The build of the Docker image copies the sources without docs/ (.dockerignore) and
/// without .git: there the test is inconclusive. In a checkout docs/ is always there, so the test goes on and a
/// missing path fails it.
/// </summary>
public static string Docs(params string[] parts)
{
var path = PathOf(["docs", .. parts]);
var root = Root()!;
var isCheckout = Directory.Exists(Path.Combine(root, ".git")) || File.Exists(Path.Combine(root, ".git"));
if (!Directory.Exists(Path.Combine(root, "docs")) && !isCheckout)
{
Assert.Inconclusive("Questa copia del repository non ha docs/ (costruzione dell'immagine Docker).");
}
return path;
}
} }
+1 -1
View File
@@ -48,7 +48,7 @@ public sealed partial class InHouseAssetsTests
// Exactly the stack of the specification (appendix B, «pila dei caratteri di sistema»), nothing more: no name of a // Exactly the stack of the specification (appendix B, «pila dei caratteri di sistema»), nothing more: no name of a
// font the Docker image leaves out (Liberation). // font the Docker image leaves out (Liberation).
var specification = File.ReadAllText(Febe.Tests.Desktop.Support.Repository.PathOf("docs", "SPECIFICA.md")); var specification = File.ReadAllText(Febe.Tests.Desktop.Support.Repository.Docs("SPECIFICA.md"));
var stated = SpecificationStack().Match(specification); var stated = SpecificationStack().Match(specification);
Assert.IsTrue(stated.Success, "la pila dell'appendice B"); Assert.IsTrue(stated.Success, "la pila dell'appendice B");
Assert.AreEqual(stated.Groups[1].Value, stack.Groups[1].Value.Trim()); Assert.AreEqual(stated.Groups[1].Value, stack.Groups[1].Value.Trim());
+1 -1
View File
@@ -37,7 +37,7 @@ public sealed partial class ScreenshotToolTests
[TestMethod] [TestMethod]
public void TheListTakesEveryScreenshotOfTheFolderOnceWithItsStep() public void TheListTakesEveryScreenshotOfTheFolderOnceWithItsStep()
{ {
var folder = Repository.PathOf("docs", "schermate"); var folder = Repository.Docs("schermate");
var steps = Repository.PathOf("tools", "Febe.Schermate", "passi"); var steps = Repository.PathOf("tools", "Febe.Schermate", "passi");
var files = Shots.All.Select(s => s.File).ToList(); var files = Shots.All.Select(s => s.File).ToList();
CollectionAssert.AllItemsAreUnique(files); CollectionAssert.AllItemsAreUnique(files);