Skip to content

Commit

Permalink
(add) tests: add test for nimble project using forge aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
xTrayambak committed Dec 3, 2024
1 parent 04a7379 commit 7b2e5e0
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/forgealias001/forgealias001.nimble
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Package

version = "0.1.0"
author = "xTrayambak"
description = "Test to check if Nimble can correctly handle packages that are installed via a forge alias"
license = "MIT"
srcDir = "src"
bin = @["forgealias001"]


# Dependencies

requires "nim >= 1.6.0"
requires "gh:xTrayambak/librng >= 0.1.3"
Empty file.
12 changes: 12 additions & 0 deletions tests/tforgeinstall.nim
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{.used.}

import unittest, os
import testscommon

from nimblepkg/common import cd

test "can install packages via a forge alias":
cd "forgealias001":
let (_, exitCode) = execNimbleYes(["build"])
check exitCode == QuitSuccess
check fileExists("forgealias001")

0 comments on commit 7b2e5e0

Please sign in to comment.