[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2] tests/examples: Add running of workflow examples
From: |
Olivier Dion |
Subject: |
Re: [PATCH v2] tests/examples: Add running of workflow examples |
Date: |
Fri, 03 Jun 2022 09:11:35 -0400 |
On Fri, 03 Jun 2022, Ricardo Wurmus <rekado@elephly.net> wrote:
> Olivier Dion <olivier.dion@polymtl.ca> writes:
>
>> End to end testing of pre-defined scenarios are a good way to check for
>> regression.
>>
>> Here we introduce testing of some examples available in the documentation.
>> That
>> way, we're sure that new users should be able to run them without problems.
>>
>> Each scenario is a different test and is run in a different temporary
>> directory which get destroyed if the scenario succeeded.
>
> Thank you for this patch. I applied it. I also added an environment
> variable check to allow us to skip these integration tests, e.g. when
> running the tests inside of a Guix build container (where we don’t have
> access to Guix).
What about skipping the group instead of running the tests?
--8<---------------cut here---------------start------------->8---
(when (getenv "GWL_SKIP_INTEGRATION_TESTS")
(test-skip "full-examples"))
(test-group "full-examples"
(test-example "simple.scm")
(test-example "simple-wisp.w")
;; ...
)
--8<---------------cut here---------------end--------------->8---
--
Olivier Dion
oldiob.dev