Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Init test suite #5

Merged
merged 19 commits into from
Jun 4, 2024
Merged

feat: Init test suite #5

merged 19 commits into from
Jun 4, 2024

Conversation

delsner
Copy link
Member

@delsner delsner commented Jun 3, 2024

Motivation

No tests.

Changes

  • Init unit test suite
  • Init integration test suite
  • Move test project into examples/

@delsner delsner self-assigned this Jun 3, 2024
@delsner delsner changed the title feat: Init test suite feat: Init test suite + CI Jun 3, 2024
tests/integration_test.rs Outdated Show resolved Hide resolved
}

#[fixture]
fn metadata_file(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are just some sample test cases s.t. we can get started with unit testing.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO add coverage + codecov upload here

@@ -6,6 +6,8 @@ edition = "2021"

[features]
default = ["tokio/rt-multi-thread"]
# Activate this feature to activate online-testing in the integration test suite.
online-test = []
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is conditional compilation the way to go for implementing something like pytest markers? (I want to mark those tests that require an internet connection to fetch packages.)

@delsner delsner changed the title feat: Init test suite + CI feat: Init test suite Jun 3, 2024
@delsner delsner marked this pull request as ready for review June 3, 2024 08:20
@delsner
Copy link
Member Author

delsner commented Jun 3, 2024

@0xbe7a @pavelzw if you know of conventions for testing in rust, please feel free to adjust the PR directly.

.github/dependabot.yml Outdated Show resolved Hide resolved
.github/dependabot.yml Outdated Show resolved Hide resolved
.github/dependabot.yml Show resolved Hide resolved
.github/dependabot.yml Outdated Show resolved Hide resolved
delsner and others added 3 commits June 3, 2024 14:24
Co-authored-by: Pavel Zwerschke <pavel.zwerschke@quantco.com>
Co-authored-by: Pavel Zwerschke <pavel.zwerschke@quantco.com>
Co-authored-by: Pavel Zwerschke <pavel.zwerschke@quantco.com>
src/unpack.rs Show resolved Hide resolved
tests/integration_test.rs Outdated Show resolved Hide resolved
@pavelzw
Copy link
Member

pavelzw commented Jun 4, 2024

Let's fix #8 in another PR

@pavelzw pavelzw merged commit c09fcc0 into main Jun 4, 2024
4 checks passed
@pavelzw pavelzw deleted the add-tests branch June 4, 2024 10:22
@pavelzw pavelzw added the enhancement New feature or request label Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants