You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`seqcli` has two test projects: `SeqCli.EndToEnd` and `SeqCli.Tests`.
8
+
9
+
### SeqCli.EndToEnd
10
+
11
+
`/test/SeqCli.EndToEnd` is a console app that implements integration tests. It uses a custom testing framework and xunit for assertions.
12
+
13
+
Each test within the EndToEnd project (an implementation of the `ICliTestCase` interface) spans one child process for the Seq server and one child process for the seqcli command.
14
+
15
+
The Seq server can be run via the `seq` executable (windows only) or as a `datalust/seq:latest` docker container. Which to use is controlled via the `--docker-server` argument.
16
+
17
+
Some tests require a Seq license. These tests are run if a valid license is supplied via stdin and the `--license-certificate-stdin` argument is supplied.
18
+
19
+
#### Adding Tests
20
+
21
+
The typical pattern is to execute a seqcli command, then make an assertion on the output of the command. E.g.
22
+
23
+
```c#
24
+
varexit=runner.Exec("apikey list", "-t Test --json --no-color");
0 commit comments