mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Make test_all_localizations
run at unittest
This commit is contained in:
parent
d90ec725cf
commit
9a0ac8dcce
@ -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
|
||||
|
@ -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 {
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user