Christina Sørensen
6daf4e4066
test(trycmd): add long_git_repos_nix.toml
2023-09-12 14:08:20 +02:00
Christina Sørensen
b197ba5fcc
test(trycmd): add long_git_nix.toml
2023-09-12 14:08:17 +02:00
Christina Sørensen
182d3af4a0
test(trycmd): add long_extended_nix.toml
2023-09-12 14:08:15 +02:00
Christina Sørensen
44231f4395
test(trycmd): add long_blocksize_nix.toml
2023-09-12 14:08:12 +02:00
Christina Sørensen
99f1f9af11
test(trycmd): add long_all_nix.toml
2023-09-12 14:08:09 +02:00
Christina Sørensen
987e7ce13b
test(long_nix): fix test reference
...
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-09-12 13:51:17 +02:00
Christina Sørensen
762f9e9ee9
test(trycmd): add example long tests for sandbox
...
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-09-12 12:38:35 +02:00
Christina Sørensen
b2c424f4ca
test(flake/cargo): add nix feature
...
This adds the nix feature to specify tests only to be run in the sandbox.
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-09-12 12:38:10 +02:00
Christina Sørensen
c812576e61
test(itest): remove vhs-runner files
...
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-09-12 11:25:07 +02:00
Sandro-Alessio Gierens
2338c15f63
refactor(tests): split trycmd into tests for all, unix and windows
...
Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
2023-09-12 10:57:22 +02:00
Sandro-Alessio Gierens
f6f8b421b2
fix(test): change trycmd config to use test/itest folder for testing
...
Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
2023-09-12 10:57:22 +02:00
Sandro-Alessio Gierens
e1fe9452e5
feat(test): add a few trycmd tests as example
...
Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
2023-09-12 10:57:19 +02:00
Sandro-Alessio Gierens
efa8fa694f
feat(test): add minimal trycmd binary
...
Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
2023-09-12 10:57:15 +02:00
Christina Sørensen
fff4f62ffa
test(itest): disable gif rendering
...
Refs: #147 , https://github.com/charmbracelet/vhs/pull/364
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-09-06 23:43:24 +02:00
Christina Sørensen
4cb870c3e2
test(itest): stabilize testing without sandbox
...
Refs: matrix discussions
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-09-06 23:04:49 +02:00
Christina Sørensen
45567eb899
build(vhs): add parallel runner
...
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-20 08:07:01 +02:00
Christina Sørensen
a8a3175dc1
build(vhs): add itest testing dir
...
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-20 06:49:21 +02:00
Christina Sørensen
15f12290e5
build(vhs): add eza-long test
...
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-20 06:49:02 +02:00
Christina Sørensen
5e0c310750
build(vhs): add color variables
...
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-20 06:43:21 +02:00
Christina Sørensen
6cad3f8048
build(vhs): remove defective sed
...
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-20 06:38:31 +02:00
Christina Sørensen
126196edfb
build(vhs): add better tracing
...
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-20 06:33:52 +02:00
Christina Sørensen
3a95c3a78e
build(vhs): use ansi output on all output
...
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-19 17:07:49 +02:00
Christina Sørensen
5486585ef3
build(vhs): slight documentation/refactor
...
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-19 17:05:17 +02:00
Christina Sørensen
78c11b51d4
build(vhs): add print_msg with ansi color
...
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-19 17:00:04 +02:00
Christina Sørensen
3c10a90caf
build(vhs): automatic tape detection
...
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-19 16:29:16 +02:00
Christina Sørensen
23acc987fa
build(vhs): gen_test support automatic gen
...
The idea behind this is that it makes it easier for users of this system
to change the reference. They should now only have to delete the old
reference, and a new one will be generated.
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-19 16:17:00 +02:00
Christina Sørensen
b182e07dcd
build(vhs): add vhs-runner main function
...
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-19 16:09:09 +02:00
Christina Sørensen
70a8d5a296
build(vhs): fix code formatting
...
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-19 16:06:44 +02:00
Christina Sørensen
eea595a912
build(vhs): remove commented out code
...
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-19 16:05:23 +02:00
Christina Sørensen
3a6b3eb6c4
build(vhs): handle arbitrary NAMES
...
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-19 16:05:01 +02:00
Christina Sørensen
eaad191ec0
build(vhs): fix typo
...
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-19 15:31:44 +02:00
Christina Sørensen
b92a0c54a2
build(vhs): add gen_test
...
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-19 15:31:30 +02:00
Christina Sørensen
f42cdd2747
build(vhs): add reference main.txt
...
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-19 15:31:00 +02:00
Christina Sørensen
2b49cdded8
build(vhs): add run_tests NAME arg
...
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-19 15:27:47 +02:00
Christina Sørensen
a3740e759d
build(vhs): add test runner sketch
...
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-19 15:17:27 +02:00
Christina Sørensen
71a3064032
build(vhs): add initial tape
...
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-19 15:16:54 +02:00
Benjamin Sago
54067bf765
Replace the testcases script with a Vagrant VM
...
See the README section for more details. Basically, with this way, we can store a bunch of existing valid exa outputs, change a VM's environment to match our values, then check that exa still works by comparing outputs.
2016-10-07 19:31:03 +01:00
Ben S
b8191670c7
Fix, and add tests for, slashes in link paths
2016-06-11 16:54:06 +01:00
Ben S
5f01ff02fa
Split tests into one file per test directory
2016-06-11 13:57:33 +01:00
Benjamin Sago
110a1c716b
Convert exa into a library
...
This commit removes the 'main' function present in main.rs, renames it to exa.rs, and puts the 'main' function in its own binary. This, I think, makes it more clear how the program works and where the main entry point is.
Librarification also means that we can start testing as a whole. Two tests have been added that test everything, passing in raw command-line arguments then comparing against the binary coloured text that gets produced.
Casualties include having to specifically mark some code blocks in documentation as 'tests', as rustdoc kept on trying to execute my ANSI art.
2016-04-19 07:48:41 +01:00