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

non async test runner #214

Open
sehz opened this issue Oct 8, 2023 · 0 comments
Open

non async test runner #214

sehz opened this issue Oct 8, 2023 · 0 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed tech debt

Comments

@sehz
Copy link
Contributor

sehz commented Oct 8, 2023

similar to #[fluvio_future::test] but support non async function.

#[cfg(test)]
mod test {
 
     // same as cargo test but initialize logging
     #[fluvio_future::test]
     fn test_add() {
           assert_eq!(1+1,2);
     }

    // uses async runtime
     #[fluvio_future::test]
     async fn test_add() {
           assert_eq!(1+2);
    }

}
@sehz sehz added tech debt help wanted Extra attention is needed good first issue Good for newcomers labels Oct 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed tech debt
Projects
None yet
Development

No branches or pull requests

1 participant