mirror of
https://github.com/daylinmorgan/hwylterm.git
synced 2025-02-22 09:25:49 -06:00
use parent most "tester" style
This commit is contained in:
parent
dbde9c91e9
commit
3b172de07d
4 changed files with 4 additions and 7 deletions
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
|
@ -23,4 +23,4 @@ jobs:
|
|||
- name: Run Tests
|
||||
run: |
|
||||
nim develop
|
||||
nim test
|
||||
nim r tests/tester
|
||||
|
|
|
@ -1,11 +1,6 @@
|
|||
import std/os except getCurrentDir
|
||||
import std/[strformat, strutils]
|
||||
|
||||
task test, "run tests":
|
||||
const testDir = thisDir() / "tests"
|
||||
selfExec fmt"r {testDir}/tbbansi.nim"
|
||||
selfExec fmt"r {testDir}/cli/tester.nim"
|
||||
|
||||
task develop, "install cligen for development":
|
||||
exec "nimble install -l 'cligen@1.7.5'"
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import std/[compilesettings, os, osproc, strutils, times, unittest, terminal]
|
||||
|
||||
const pathToSrc = querySetting(SingleValueSetting.projectPath)
|
||||
const pathToSrc = currentSourcePath().parentDir()
|
||||
const binDir = pathToSrc / "bin"
|
||||
const hwylCliSrc = pathToSrc / "../../src/hwylterm/hwylcli.nim"
|
||||
let hwylCliWriteTime = getFileInfo(hwylCliSrc).lastWriteTime
|
||||
|
|
2
tests/tester.nim
Normal file
2
tests/tester.nim
Normal file
|
@ -0,0 +1,2 @@
|
|||
import ./tbbansi
|
||||
import ./cli/tester
|
Loading…
Add table
Reference in a new issue