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(test): run the httpd inside the integration testing #164

Closed
wants to merge 1 commit into from

Conversation

vincenzopalazzo
Copy link
Contributor

No description provided.

@netlify
Copy link

netlify bot commented Jul 5, 2023

Deploy Preview for coffee-docs canceled.

Name Link
🔨 Latest commit 2514b2e
🔍 Latest deploy log https://app.netlify.com/sites/coffee-docs/deploys/64a547226c580f0008806774

This will introduce an easy way to test run the httpd
and make tests on the endpoints.

Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
let args = opt_args.trim();
let args_tok: Vec<&str> = args.split(" ").collect();

let cargo_target = std::env::var("CARGO_TARGET_DIR").unwrap();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is wrong, I make this working in the #91

Copy link
Contributor Author

Choose a reason for hiding this comment

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

     let cargo_target = concat!(env!("CARGO_MANIFEST_DIR"), "/..");
    let path = std::path::Path::new(cargo_target).to_str().unwrap();

Copy link
Contributor Author

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

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

a small self review

Copy link
Contributor Author

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

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

Ok this is the way to fix the httpd

let args = opt_args.trim();
let args_tok: Vec<&str> = args.split(" ").collect();

let cargo_target = std::env::var("CARGO_TARGET_DIR").unwrap();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

     let cargo_target = concat!(env!("CARGO_MANIFEST_DIR"), "/..");
    let path = std::path::Path::new(cargo_target).to_str().unwrap();

@vincenzopalazzo
Copy link
Contributor Author

overrided by #170

@vincenzopalazzo vincenzopalazzo deleted the macros/http-testing branch July 9, 2023 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant