Make test_all_localizations run at unittest

This commit is contained in:
juliancoffee 2022-08-25 13:18:06 +03:00
parent d90ec725cf
commit 9a0ac8dcce
3 changed files with 8 additions and 8 deletions

View File

@ -1,4 +1,8 @@
#!/bin/bash
export VELOREN_ASSETS="$(pwd)/assets"
time cargo test --package veloren-common-assets asset_tweak::tests --features asset_tweak --lib &&
time cargo test
VELOREN_ASSETS="$(pwd)/assets"
export VELOREN_ASSETS
time cargo test \
--package veloren-common-assets asset_tweak::tests \
--features asset_tweak --lib &&
time cargo test --features stat

View File

@ -30,6 +30,7 @@ fn keys_from_file(filepath: &Path) -> Vec<MsgId> {
ResourceErr::parsing_error(errs, file.clone(), &content)
)
});
let mut keys = Vec::new();
for entry in ast.body {
match entry {

View File

@ -163,10 +163,6 @@ impl assets::Compound for Language {
// Here go dragons
for id in cache.load_dir::<raw::Resource>(path, true)?.ids() {
if id.ends_with("_manifest") {
continue;
}
match cache.load(id) {
Ok(handle) => {
let source: &raw::Resource = &*handle.read();
@ -518,7 +514,6 @@ mod tests {
}
#[test]
#[ignore]
#[cfg(feature = "stat")]
// Generate translation stats
fn test_all_localizations() {