Skip to content

Commit

Permalink
fix(tasks/prettier_conformance): enable test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Jan 19, 2025
1 parent 2a2a2eb commit 83caa56
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 7 additions & 0 deletions tasks/prettier_conformance/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ use oxc_span::SourceType;

use crate::{ignore_list::IGNORE_TESTS, options::TestRunnerOptions, spec::parse_spec};

#[test]
#[cfg(any(coverage, coverage_nightly))]
fn test() {
TestRunner::new(TestRunnerOptions { filter: None, language: TestLanguage::Js }).run();
TestRunner::new(TestRunnerOptions { filter: None, language: TestLanguage::Ts }).run();
}

fn root() -> PathBuf {
oxc_tasks_common::project_root().join("tasks").join("prettier_conformance")
}
Expand Down
7 changes: 0 additions & 7 deletions tasks/prettier_conformance/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,3 @@ fn main() {
TestRunner::new(TestRunnerOptions { filter: filter.clone(), language: TestLanguage::Js }).run();
TestRunner::new(TestRunnerOptions { filter: filter.clone(), language: TestLanguage::Ts }).run();
}

#[test]
#[cfg(any(coverage, coverage_nightly))]
fn test() {
TestRunner::new(TestRunnerOptions { filter: None, language: TestLanguage::Js }).run();
TestRunner::new(TestRunnerOptions { filter: None, language: TestLanguage::Ts }).run();
}

0 comments on commit 83caa56

Please sign in to comment.