Skip to content

Commit

Permalink
Fix tests (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
drisspg authored May 16, 2024
1 parent 8e6ae15 commit bfae462
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@ permissions:
id-token: write

jobs:
rust-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
- name: Run Tests
run: cargo test --release -- --nocapture
linux:
runs-on: ubuntu-latest
strategy:
Expand Down
6 changes: 3 additions & 3 deletions tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fn test_parse_simple() {
let path = Path::new("tests/inputs/simple.log").to_path_buf();
let config = tlparse::ParseConfig {
strict: true,
custom_parsers: vec![],
..Default::default()
};
let output = tlparse::parse_path(&path, config);
assert!(output.is_ok());
Expand Down Expand Up @@ -61,7 +61,7 @@ fn test_parse_compilation_metrics() {
let path = Path::new("tests/inputs/comp_metrics.log").to_path_buf();
let config = tlparse::ParseConfig {
strict: true,
custom_parsers: vec![],
..Default::default()
};
let output = tlparse::parse_path(&path, config);
assert!(output.is_ok());
Expand Down Expand Up @@ -90,7 +90,7 @@ fn test_parse_compilation_failures() {
let path = Path::new("tests/inputs/comp_failure.log").to_path_buf();
let config = tlparse::ParseConfig {
strict: true,
custom_parsers: vec![],
..Default::default()
};
let output = tlparse::parse_path(&path, config);
assert!(output.is_ok());
Expand Down

0 comments on commit bfae462

Please sign in to comment.