Skip to content

Allow building integration tests without running them #69

Closed

Description

@nrc

As an alternative, we could check for the PD_ADDR env var and pass the test if it is not present (or ignore it if it is not present at compile time?).

My reasoning is that when working on the library, it is nice to check that the integration tests still compile, even if we don't run them. Given we don't run them by default today, I don't think passing by default will give a false sense of security.

@Hoverbear what do you think?

Activity

  1. Hoverbear commented on Jun 19, 2019

    @Hoverbear
    Contributor

    Is it possible to do no-run on tests based on feature flags? Maybe we could use this feature to just enable running the tests (not building of them, which is always)?

  2. nrc commented on Jun 19, 2019

    @nrc
    CollaboratorAuthor

    Is it possible to do no-run on tests based on feature flags? Maybe we could use this feature to just enable running the tests (not building of them, which is always)?

    Good question! I think it should be possible, just a cfg_attr and that would be a good solution if it works.

  3. Hoverbear commented on Jun 20, 2019

    @Hoverbear
    Contributor

    Hmmm let me try it!

  4. Hoverbear commented on Jun 20, 2019

    @Hoverbear
    Contributor

    @nrc If we still require property-testing feature is that ok? Unfortunately due to the proptest macro it's difficult to include it in the build without that feature.

  5. added 2 commits that reference this issue on Jun 20, 2019
    9021984
    ec77661
  6. nrc commented on Jun 20, 2019

    @nrc
    CollaboratorAuthor

    moving discussion to #68 since I'm finding it difficult to flick between tabs :-)

  7. changed the title [-]Remove `integration-tests` feature?[/-] [+]Allow building integration tests without running them[/+] on Jun 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions