library all_test;

import 'package:euler/euler.dart';
import 'package:unittest/unittest.dart';

void main() {
  allProblemsDo((problem, executor) {
    test('Problem $problem', () {
      expect(executor().exitCode, 0, reason: 'Exit code');
    });
  }, arguments: ['--checked']);
}

library all_test;

import 'package:euler/euler.dart';
import 'package:unittest/unittest.dart';

void main() {
  allProblemsDo((problem, executor) {
    test('Problem $problem', () {
      var result = executor();
      if (result.exitCode != 0) {
        logMessage(result.stderr);
      }
      expect(executor().exitCode, 0, reason: 'Exit code');
    });
  }, arguments: ['--checked']);
}

Fix the error reporting when running the tests
Fix the error reporting when running the tests
