Treat warnings as failures even in tests

This commit is contained in:
Fabrice Reix 2021-07-03 14:33:10 +02:00
parent b82e925ce7
commit 47e15c6f52
3 changed files with 2 additions and 7 deletions

View File

@ -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"

View File

@ -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 ???

View File

@ -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 {},