Skip to content

Commit ca9aab8

Browse files
authored
Run tests per language via LANGUAGE=de npm test (#60)
1 parent 1586687 commit ca9aab8

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file. For change
44
## Unreleased
55

66
- put future changes here
7+
- Run tests per language via LANGUAGE=de npm test
78

89
# 0.0.5 2016-10-26
910

Readme.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,5 @@ To add own translations:
6060
- Translate
6161
- Add the new instructions file to `instructions.js`
6262
- Add the new instructions file to the `languages` array in `test/instructions_test.js`
63-
- To manually look at the changes:
64-
- Change the locale in `test/index_test.js`
65-
- Run `UPDATE=1 npm test` and look at the changes in `git diff`
66-
- When done, revert via `git checkout test`
63+
- To manually look at your changes, run `LANGUAGE=<language_tag> npm test`. This will give you failing (since untranslated) tests
6764
- Make a PR

test/index_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ tape.test('v5 laneDiagram', function(assert) {
8888

8989
tape.test('v5 compile', function(t) {
9090
t.test('fixtures match generated instructions', function(assert) {
91-
var v5Instructions = instructions('v5', 'en');
91+
var v5Instructions = instructions('v5', process.env.LANGUAGE || 'en');
9292
var basePath = path.join(__dirname, 'fixtures', 'v5/');
9393

9494
fs.readdirSync(basePath).forEach(function(type) {

0 commit comments

Comments
 (0)