mirror of
https://github.com/ddworken/hishtory.git
synced 2025-08-16 01:48:06 +02:00
Add rudimentary experiment of splitting tests into two chunks to make them faster
This commit is contained in:
@ -366,3 +366,17 @@ func stripRequiredPrefix(t *testing.T, out, prefix string) string {
|
||||
func stripTuiCommandPrefix(t *testing.T, out string) string {
|
||||
return stripRequiredPrefix(t, out, "hishtory tquery")
|
||||
}
|
||||
|
||||
func tagAsBasicTest(t *testing.T) {
|
||||
s := os.Getenv("SPLIT_TESTS")
|
||||
if s != "" && s != "BASIC" {
|
||||
t.Skip()
|
||||
}
|
||||
}
|
||||
|
||||
func tagAsTuiTest(t *testing.T) {
|
||||
s := os.Getenv("SPLIT_TESTS")
|
||||
if s != "" && s != "TUI" {
|
||||
t.Skip()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user