mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-24 19:42:07 +03:00
Treat warnings as failures even in tests
This commit is contained in:
parent
b82e925ce7
commit
47e15c6f52
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -69,7 +69,7 @@ jobs:
|
||||
wget https://snapshots.mitmproxy.org/5.2/mitmproxy-5.2-linux.tar.gz -O - | tar -xz && ./mitmdump -p 8888 --modify-header "/From-Proxy/Hello" &
|
||||
- name: Run Tests units
|
||||
run: |
|
||||
cargo test
|
||||
cargo test --features strict
|
||||
- name: Run Integration Tests
|
||||
run: |
|
||||
export PATH="$PWD/target/debug:$PATH"
|
||||
|
@ -294,9 +294,8 @@ impl Value {
|
||||
#[cfg(test)]
|
||||
pub mod tests {
|
||||
use super::*;
|
||||
use hurl_core::ast::{Pos, SourceInfo};
|
||||
#[macro_use]
|
||||
use hex_literal::hex;
|
||||
use hurl_core::ast::{Pos, SourceInfo};
|
||||
|
||||
pub fn xpath_invalid_query() -> Query {
|
||||
// xpath ???
|
||||
|
@ -159,10 +159,6 @@ pub mod tests {
|
||||
#[test]
|
||||
fn test_subquery_count() {
|
||||
let variables = HashMap::new();
|
||||
let whitespace = Whitespace {
|
||||
value: String::from(""),
|
||||
source_info: SourceInfo::init(0, 0, 0, 0),
|
||||
};
|
||||
let subquery = Subquery {
|
||||
source_info: SourceInfo::init(1, 1, 1, 20),
|
||||
value: SubqueryValue::Count {},
|
||||
|
Loading…
Reference in New Issue
Block a user