martinlindhe / laravel-vue-i18n-generator

Generates a vue-i18n compatible include file from your Laravel translations
MIT License
306 stars 207 forks source link

Refactor tests #111

Closed murrant closed 4 years ago

murrant commented 4 years ago

This refactors tests to use input files instead of generated files. This make it easier to reuse input files for multiple tests and inspect the input files. Adds basic tests for multi-file/multi-locale output, but the code is notably ignoring json files. I made the tests just work for now and we can introduce correct behavior in a different patch.

Possibly some of the test input data could be consolidated if need be.

Adds orchestra/testbench so we can boot Laravel without having all the scaffolding in place.

Requires #109 or #112. I tested including #112 to verify tests run on Travis (without it they fail)

Jellyfrog commented 4 years ago

@martinlindhe if it's not clear, you need to merge https://github.com/martinlindhe/laravel-vue-i18n-generator/pull/112 before this passes the tests

murrant commented 4 years ago

Merged at https://github.com/librenms/laravel-vue-i18n-generator